mirror of
https://gitlab.com/Zer0interrupt/recipe-manager.git
synced 2026-11-01 23:24:11 -05:00
23 lines
420 B
Docker
23 lines
420 B
Docker
# Base image: Minimal LTS Node Alpine
|
|
FROM node:20-alpine
|
|
|
|
# Setup workspace environment
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy dependency manifests
|
|
COPY package*.json ./
|
|
|
|
# Install clean production dependencies
|
|
RUN npm ci --only=production
|
|
|
|
# Copy application source files
|
|
COPY . .
|
|
|
|
# Setup persistent volume mount point
|
|
RUN mkdir -p /usr/src/app/data
|
|
|
|
# Default port exposure
|
|
EXPOSE 3000
|
|
|
|
# Start command
|
|
CMD [ "npm", "start" ]
|