aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: b59b3852fc389f3801f4b180d2f14853ddea47ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# the JRE is required by the openapi-generator-cli
FROM eclipse-temurin:17-jre-alpine as builder
RUN apk update && \
    apk add nodejs npm
WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

FROM openresty/openresty:1.21.4.1-4-alpine
RUN apk add gettext
COPY server/resty /usr/local/openresty/lualib/resty/
COPY server/nginx* ./
COPY docker_entrypoint.sh .
COPY --from=builder /usr/src/app/dist/frontend /usr/share/nginx/html
ENTRYPOINT ["/docker_entrypoint.sh"]
EXPOSE ${NGINX_PORT}
CMD ["nginx", "-g", "daemon off;"]