-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (18 loc) · 896 Bytes
/
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
FROM docker.io/floryn90/hugo:0.134.2-ext-ubuntu AS builder
# Add package.json before rest of repo for caching
COPY site/package.json site/package-lock.json site/.npmrc site/.npmignore /src/
RUN npm ci
COPY ./site /src
RUN npm run build
FROM nginxinc/nginx-unprivileged:1.27-alpine
EXPOSE 8080
# The URL of the backend service, see https://github.com/acend/website-backend
ENV BACKEND_URL=http://acend-website-backend:8000
LABEL maintainer acend.ch
LABEL org.opencontainers.image.title="acend.ch's Website"
LABEL org.opencontainers.image.description="Container with acend.ch's Website"
LABEL org.opencontainers.image.authors="acend.ch"
LABEL org.opencontainers.image.source="https://github.com/acend/website/"
LABEL org.opencontainers.image.licenses="CC-BY-SA-4.0"
COPY --from=builder /src/public /usr/share/nginx/html
COPY ./nginx.conf.template /etc/nginx/templates/default.conf.template