Initial commit
This commit is contained in:
22
svar-gantt-app/Dockerfile
Normal file
22
svar-gantt-app/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
# Étape 1: Build
|
||||
FROM node:20 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Étape 2: Runtime (production)
|
||||
FROM node:20
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "build"]
|
||||
Reference in New Issue
Block a user