Gitea/homepage/pipeline/head There was a failure building this commit
19 lines
192 B
Docker
19 lines
192 B
Docker
FROM node:alpine AS builder
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
FROM node:alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/build ./
|
|
|
|
CMD ["node", "./"]
|