for reel
This commit is contained in:
parent
e603f65fdc
commit
9453ef59d3
14
Dockerfile
14
Dockerfile
@ -1,9 +1,15 @@
|
|||||||
FROM node:lts-alpine
|
FROM fascinated/docker-images:node-pnpm-latest AS base
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
|
||||||
RUN npm install --production --silent && mv node_modules ../
|
COPY ["package.json", "pnpm-lock.json", "./"]
|
||||||
|
|
||||||
|
RUN pnpm install --production --silent && mv node_modules ../
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN chown -R node /usr/src/app
|
RUN chown -R node /usr/src/app
|
||||||
USER node
|
USER node
|
||||||
CMD ["node", "index.js"]
|
|
||||||
|
CMD pnpm run start
|
||||||
|
@ -3,5 +3,3 @@ version: "3.4"
|
|||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
image: fascinated/mc-tracker-backend:influx
|
image: fascinated/mc-tracker-backend:influx
|
||||||
environment:
|
|
||||||
NODE_ENV: production
|
|
||||||
|
Loading…
Reference in New Issue
Block a user