aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 2a4c9767118458aef4aa22ed991f77163bf95810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node:alpine AS builder

WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci

COPY rollup.config.js ./
COPY src ./src
RUN npm run build

FROM nginx:alpine AS server

WORKDIR /usr/share/nginx/html
RUN apk add --no-cache gettext
COPY nginx-entrypoint.sh /
COPY --from=builder /app/dist ./

ENTRYPOINT [ "sh", "/nginx-entrypoint.sh" ]