Réécriture complète en Typescript
This commit is contained in:
23
Dockerfile
Normal file → Executable file
23
Dockerfile
Normal file → Executable file
@@ -1,11 +1,28 @@
|
||||
FROM node:latest
|
||||
FROM node:alpine as base
|
||||
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY ["package.json", "package-lock.json*", "./"]
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install ffmpeg
|
||||
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"]
|
||||
Reference in New Issue
Block a user