18 lines
343 B
Docker
18 lines
343 B
Docker
FROM alpine:3.21 AS builder
|
|
|
|
RUN apk add --no-cache bash yq coreutils findutils
|
|
|
|
WORKDIR /src
|
|
COPY . .
|
|
|
|
RUN chmod +x build.sh render.sh nginx/generate-nginx.sh && \
|
|
./build.sh
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /src/build/ /usr/share/nginx/html/
|
|
COPY --from=builder /src/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
RUN nginx -t
|
|
EXPOSE 80
|