mirror of
https://github.com/aculix/negotium.git
synced 2025-12-06 00:38:17 +00:00
16 lines
298 B
Docker
16 lines
298 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies with proper optional dependency handling for Alpine/musl
|
|
RUN rm -f package-lock.json && \
|
|
npm install --include=optional
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN npm run build |