Gitea/homepage/pipeline/head There was a failure building this commit
20 lines
204 B
Docker
20 lines
204 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 ./
|
|
|
|
EXPOSE 3000
|
|
CMD ["node", "./"]
|