Creation container pour l'API reviews

This commit is contained in:
2023-01-11 11:31:33 +01:00
parent 81dd02943a
commit b5e34fd898
21 changed files with 128 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
FROM node:lts-alpine
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"]