mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 02:20:17 +01:00
Creation container pour l'API reviews
This commit is contained in:
9
code/reviews_api/Dockerfile
Normal file
9
code/reviews_api/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user