Files
Ticketsystem/Dockerfile
T
2026-02-26 16:29:28 +01:00

20 lines
354 B
Docker

FROM node:20-alpine
WORKDIR /app
# Copy package files first for better layer caching
COPY package.json package-lock.json* ./
RUN npm ci --omit=dev
# Copy the rest of the application
COPY server.js ./
COPY public/ ./public/
COPY assets/ ./assets/
# Create data directory for the database
RUN mkdir -p /app/data
EXPOSE 3000
CMD ["node", "server.js"]