Skip to content

Commit

Permalink
build(docker): fix file permission, optimize build (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
entertvl committed Sep 12, 2021
1 parent 00489cc commit 19d0c04
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
@@ -0,0 +1,11 @@
.github
.vscode
node_modules
.gitignore
.node-version
.prettierrc
.replit
CODE_OF_CONDUCT.md
config.json.example
CONTRIBUTING.md
Procfile
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -15,10 +15,10 @@ RUN groupadd -r ${USER} && \
USER ${USER}
WORKDIR /home/evobot

COPY package*.json ./
COPY --chown=${USER}:${USER} package*.json ./
RUN npm install
VOLUME [ "/home/evobot" ]

COPY . .
COPY --chown=${USER}:${USER} . .

ENTRYPOINT [ "node", "index.js" ]

0 comments on commit 19d0c04

Please sign in to comment.