-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM debian:bookworm-slim AS builder
WORKDIR /app
RUN apt-get update && apt-get -y install --no-install-recommends \
npm
COPY package.json package-lock.json /app/
RUN npm ci
COPY . /app/
RUN npm run build # && npm run doc
FROM nginxinc/nginx-unprivileged:1.27-bookworm-perl AS server
LABEL org.opencontainers.image.source="https://github.com/geoblocks/ngv"
LABEL org.opencontainers.image.url="https://github.com/geoblocks/ngv"
LABEL org.opencontainers.image.title="ngv-ui"
LABEL org.opencontainers.image.description="UI container for the Modern 3D viewer"
LABEL org.opencontainers.image.version=""
LABEL org.opencontainers.image.licenses=""
LABEL org.opencontainers.image.revision=""
LABEL maintainer="Guillaume Beraudo <guillaume.beraudo@camptocamp.com>"
COPY --from=builder /app/dist /usr/share/nginx/html
# The .conf.template files are used to configure the nginx server.
# In the entrypoint, the environment variables are automatically replaced.
# See docs for more information: https://hub.docker.com/_/nginx
COPY docker/*.conf.template /etc/nginx/templates/
# Hooks for the entrypoint
# env files are executed, envsh files are sourced
COPY docker/*.envsh docker/*.sh /docker-entrypoint.d/