infoscreen/Dockerfile

15 lines
335 B
Docker
Raw Normal View History

2022-01-06 20:21:37 +01:00
FROM node:alpine AS builder
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;"]