build: switch from nginx to Caddy
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -5,13 +5,13 @@ RUN apk add --no-cache bash yq coreutils findutils
|
|||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN chmod +x build.sh render.sh nginx/generate-nginx.sh && \
|
RUN chmod +x build.sh render.sh && \
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM caddy:alpine
|
||||||
|
|
||||||
COPY --from=builder /src/build/ /usr/share/nginx/html/
|
COPY --from=builder /src/build/ /srv/
|
||||||
COPY --from=builder /src/nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY --from=builder /src/Caddyfile /etc/caddy/Caddyfile
|
||||||
|
|
||||||
RUN nginx -t
|
RUN caddy validate --config /etc/caddy/Caddyfile
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
Reference in New Issue
Block a user