development #1

Merged
jselesan merged 2 commits from development into main 2026-03-20 13:53:11 +00:00
2 changed files with 27 additions and 0 deletions
Showing only changes of commit 2692bc2c61 - Show all commits

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
node_modules
.git
*.log

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY index.js ./
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/index.js .
RUN addgroup -g 1001 -S nodejs && \
adduser -S nodejs -u 1001
USER nodejs
EXPOSE 3000
CMD ["node", "index.js"]