2023-12-23 22:22:37 +00:00
|
|
|
FROM harbor.fizz.buzz/private/natter:latest AS builder
|
|
|
|
|
|
|
|
COPY . /source
|
|
|
|
RUN ls /source/
|
|
|
|
RUN natter build --config /source/natter.toml
|
|
|
|
|
2024-09-30 22:00:51 +00:00
|
|
|
FROM alpine:3.20 AS server
|
2023-07-09 03:01:12 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache bash nginx
|
|
|
|
RUN addgroup web && adduser -D -G web web && install -d -D -o web -g web -m 700 /srv/http/public
|
|
|
|
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
|
|
|
|
|
|
|
|
COPY --chown=web:web docker/server/nginx.conf /srv/http
|
|
|
|
COPY --chown=web:web docker/server/headers.include /srv/http
|
2023-12-23 22:22:37 +00:00
|
|
|
COPY --from=builder --chown=web:web /source/output/ /srv/http/public/
|
2023-07-09 03:01:12 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/sbin/nginx", "-c", "/srv/http/nginx.conf", "-e", "stderr", "-g", "daemon off;"]
|