Réécriture complète en Typescript

This commit is contained in:
Angels-dev
2024-01-14 22:53:06 +01:00
parent 6ffa521888
commit 07d54abdba
108 changed files with 2477 additions and 1943 deletions

23
Dockerfile Normal file → Executable file
View 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"]