28 lines
520 B
Docker
Executable File
28 lines
520 B
Docker
Executable File
FROM node:alpine as base
|
|
|
|
ENV NODE_ENV=production
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY ["package.json", "package-lock.json*", "./"]
|
|
RUN apk add --no-cache ffmpeg python3 make g++
|
|
RUN npm install --production --verbose && mv node_modules ../
|
|
|
|
COPY . .
|
|
RUN chown -R node /usr/src/app
|
|
USER node
|
|
|
|
|
|
FROM base as tamiseur
|
|
RUN mv .env1 .env
|
|
RUN rm .env2 .env3
|
|
CMD ["npm", "start"]
|
|
|
|
FROM base as funky
|
|
RUN mv .env2 .env
|
|
RUN rm .env1 .env3
|
|
CMD ["npm", "start"]
|
|
|
|
FROM base as groove
|
|
RUN mv .env3 .env
|
|
RUN rm .env1 .env2
|
|
CMD ["npm", "start"] |