Pushing Cuts to repo. Still bugs however decently stable.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Build stage
|
||||
FROM node:18-alpine AS builder
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install wget and dumb-init for proper signal handling
|
||||
RUN apk add --no-cache wget dumb-init
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -9,19 +11,7 @@ COPY package*.json ./
|
||||
# Install dependencies
|
||||
RUN npm ci --only=production && npm cache clean --force
|
||||
|
||||
# Runtime stage
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install wget for healthcheck
|
||||
RUN apk add --no-cache wget
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy dependencies from builder
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
|
||||
# Copy application files
|
||||
COPY package*.json ./
|
||||
COPY server.js ./
|
||||
COPY public ./public
|
||||
COPY routes ./routes
|
||||
@@ -43,4 +33,6 @@ USER nodejs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
# Use dumb-init to handle signals properly and prevent zombie processes
|
||||
ENTRYPOINT ["dumb-init", "--"]
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user