konfach_cloud_home/Dockerfile

19 lines
242 B
Docker

FROM node:20-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY . .
RUN npm run build
FROM busybox:latest
COPY --from=build-stage /app/dist /app
EXPOSE 80
CMD ["busybox", "httpd", "-f", "-p", "80", "-h", "/app"]