Add files via upload
This commit is contained in:
18
MojaAplikacja/Dockerfile
Normal file
18
MojaAplikacja/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:18-slim as builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
FROM node:18-slim
|
||||
LABEL org.opencontainers.image.authors="Julia"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:3000/ || exit 1
|
||||
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user