mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
refactor: optimize docker image building
This commit is contained in:
10
.dockerignore
Normal file
10
.dockerignore
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Exclude the following directories, when copying into an image
|
||||||
|
.git
|
||||||
|
.gitlab
|
||||||
|
.nyc_output
|
||||||
|
.vscode
|
||||||
|
coverage
|
||||||
|
|
||||||
|
# Exclude the following files, when copying into an image
|
||||||
|
.gitignore
|
||||||
|
.gitlab-ci.yml
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM registry.gitlab.com/openstapps/projectmanagement/node
|
FROM registry.gitlab.com/openstapps/projectmanagement/node
|
||||||
|
|
||||||
ADD . /minimal-connector
|
|
||||||
WORKDIR /minimal-connector
|
WORKDIR /minimal-connector
|
||||||
|
|
||||||
ENTRYPOINT ["node", "lib/cli.js", "run", "--"]
|
ENTRYPOINT ["node", "lib/cli.js", "run", "--"]
|
||||||
|
CMD [""]
|
||||||
|
|
||||||
CMD [""]
|
# Add connector as last step to reuse layers effectively
|
||||||
|
ADD . /minimal-connector
|
||||||
Reference in New Issue
Block a user