infoscreen/Dockerfile

15 lines
338 B
Docker
Raw Normal View History

2022-07-11 20:42:08 +02:00
FROM node:16-alpine AS builder
2022-01-06 20:21:37 +01:00
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
ENV GATSBY_TELEMETRY_DISABLED 1
RUN npm run build
2022-01-06 19:50:43 +01:00
2022-01-06 21:06:55 +01:00
FROM nginx:alpine
WORKDIR /usr/share/nginx/html
RUN rm -rf ./*
COPY --from=builder /app/public .
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]