add TP2
This commit is contained in:
13
tp_wik_dps_02/dockerfile
Normal file
13
tp_wik_dps_02/dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM node:alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install express dotenv && adduser -S guh
|
||||
|
||||
COPY . .
|
||||
|
||||
USER guh
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user