mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +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
|
||||
|
||||
ADD . /minimal-connector
|
||||
WORKDIR /minimal-connector
|
||||
|
||||
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