infoscreen/Dockerfile

15 lines
339 B
Docker
Raw Normal View History

2022-05-12 20:00:32 +02:00
FROM node:lts-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;"]