mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-20 03:01:04 -05:00
Update mount path
This commit is contained in:
@@ -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" ]
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user