16 lines
261 B
Docker
16 lines
261 B
Docker
FROM node:20-alpine as build
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY package.json package-lock.* ./
|
|
RUN npm install
|
|
|
|
# Build the application
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# ====================================
|
|
FROM build as release
|
|
|
|
CMD ["npm", "run", "start"] |