Skip to content

Commit

Permalink
Merge pull request #32 from Blvckleg/fix-docker-assets
Browse files Browse the repository at this point in the history
fix(docker-image): copy assets
  • Loading branch information
lulu12329 authored Sep 29, 2023
2 parents ff17868 + 3f541bd commit 7cee44c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ WORKDIR /home/node
COPY --chown=node:node --from=builder /home/node/package*.json /home/node/
COPY --chown=node:node --from=builder /home/node/node_modules/ /home/node/node_modules/
COPY --chown=node:node --from=builder /home/node/dist/ /home/node/dist/
COPY --chown=node:node --from=builder /home/node/src/assets/ /home/node/src/assets/

CMD ["node", "dist/main"]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"start": "nest start",
"tunnel": "ngrok http 3000",
"start:debug": "nest start --debug --watch",
"build:prod": "docker build --pull --rm -f \"dockerfiles\\Dockerfile.prod\" -t bingusboingus:latest \".\"",
"build:test": "docker build --pull --rm -f \"dockerfiles\\Dockerfile.test\" -t bingusboingus:test \".\"",
"build:prod": "docker build --pull --rm -f \"dockerfiles\\Dockerfile.prod\" -t ghcr.io/blvckleg/bingusboingus:latest \".\"",
"build:test": "docker build --pull --rm -f \"dockerfiles\\Dockerfile.test\" -t ghcr.io/blvckleg/bingusboingus:test \".\"",
"test:image": "docker run bingusboingus:test npm run test",
"test": "jest",
"test:watch": "jest --watch"
Expand Down

0 comments on commit 7cee44c

Please sign in to comment.