Files
lst_v3/Dockerfile

23 lines
364 B
Docker

FROM node:24.12-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install production dependencies only
RUN npm ci
RUN npm build:app
# Copy built app from builder stage
COPY --from=builder /app/dist ./dist
# Environment variables with defaults
ENV PORT=3000
ENV DB_USER=admin
ENV DB_PASSWORD=changeme
EXPOSE 3000
CMD ["node", "dist/index.js"]