Initial TicketTracker release
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
FROM node:22-bookworm-slim AS builder
|
||||
WORKDIR /app
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
COPY backend/package.json ./backend/package.json
|
||||
COPY frontend/package.json ./frontend/package.json
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npm run build && npm prune --omit=dev
|
||||
|
||||
FROM node:22-bookworm-slim AS runtime
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
ENV BACKEND_PORT=3001
|
||||
ENV SERVE_FRONTEND=false
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/package.json ./
|
||||
COPY --from=builder /app/backend/package.json ./backend/package.json
|
||||
COPY --from=builder /app/backend/dist ./backend/dist
|
||||
COPY --from=builder /app/frontend/package.json ./frontend/package.json
|
||||
COPY --from=builder /app/frontend/.next ./frontend/.next
|
||||
COPY --from=builder /app/frontend/public ./frontend/public
|
||||
COPY scripts ./scripts
|
||||
RUN chmod +x ./scripts/start-container.sh
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["./scripts/start-container.sh"]
|
||||
Reference in New Issue
Block a user