Update mount path

This commit is contained in:
Charlie Laabs
2021-12-29 21:50:04 -06:00
parent 93257e3acf
commit 81d086c47d
2 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
########
FROM node:16-alpine3.14 as base
WORKDIR /usr/src/app
WORKDIR /usr/app
########
# BUILD
@@ -32,10 +32,10 @@ RUN npm run build
FROM base as deploy
# Steal node_modules from base image
COPY --from=build /usr/src/app/node_modules node_modules
COPY --from=build /usr/app/node_modules node_modules
# Steal compiled code from build image
COPY --from=build /usr/src/app/dist dist
COPY --from=build /usr/app/dist dist
# Copy package.json for version number
COPY package*.json ormconfig.js ./
@@ -47,4 +47,4 @@ ARG COMMIT_SHA=""
ENV NODE_ENV=production \
COMMIT_SHA=${COMMIT_SHA}
CMD [ "node", "/usr/src/app/dist/index.js" ]
CMD [ "node", "/usr/app/dist/index.js" ]

View File

@@ -9,7 +9,7 @@
"build": "rimraf dist && tsc",
"lint": "tsc --noEmit && eslint **/*.ts *.js",
"docker:build": "docker build . -t charlocharlie/markov-discord:latest --target deploy",
"docker:run": "docker run --rm -ti -v $(pwd)/config:/usr/src/app/config charlocharlie/markov-discord:latest"
"docker:run": "docker run --rm -ti -v $(pwd)/config:/usr/app/config charlocharlie/markov-discord:latest"
},
"repository": "https://github.com/claabs/markov-discord.git",
"keywords": [