diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..109b4eb9 --- /dev/null +++ b/.dockerignore @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 93aa42ae..d2323d11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 [""] \ No newline at end of file +# Add connector as last step to reuse layers effectively +ADD . /minimal-connector \ No newline at end of file