Add files via upload

This commit is contained in:
Julka616
2025-05-13 18:26:48 +02:00
committed by GitHub
commit ecf335606e
6 changed files with 346 additions and 0 deletions

18
MojaAplikacja/Dockerfile Normal file
View 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"]