mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
ci: build multi-arch image
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,14 +1,21 @@
|
||||
FROM node:slim
|
||||
# Stage 1: Build the application
|
||||
FROM node:slim AS builder
|
||||
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm cache clean --force
|
||||
RUN npm install
|
||||
|
||||
COPY ./ ./
|
||||
|
||||
# Stage 2: Create the production image
|
||||
FROM node:slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "run", "start-app"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user