container docker pour le backend python pret

This commit is contained in:
2023-01-11 23:31:37 +01:00
parent e1810554a6
commit 01eb7976a2
9 changed files with 83 additions and 30 deletions

View File

@@ -3,7 +3,6 @@ WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY . .
EXPOSE 8080
RUN chown -R node /usr/src/app
USER node
CMD ["node", "index.js"]