Skip to content

Commit

Permalink
fix: do not use edge, remove missing files
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <[email protected]>
  • Loading branch information
shanduur committed Nov 15, 2024
1 parent 201e487 commit 1b99382
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG ALPINE_VERSION=edge
ARG ALPINE_VERSION=3.20

FROM alpine:$ALPINE_VERSION as builder
FROM alpine:$ALPINE_VERSION AS builder

RUN apk update && apk add --no-cache --virtual .build-dependencies \
cargo \
Expand All @@ -21,7 +21,7 @@ WORKDIR /usr/src/sozu
RUN cargo vendor --locked
RUN cargo build --release --frozen

FROM alpine:$ALPINE_VERSION as bin
FROM alpine:$ALPINE_VERSION AS bin

EXPOSE 80
EXPOSE 443
Expand All @@ -38,8 +38,6 @@ RUN apk update && apk add --no-cache \

COPY --from=builder /usr/src/sozu/target/release/sozu /usr/local/bin/sozu
COPY os-build/config.toml /etc/sozu/config.toml
COPY lib/assets/404.html /etc/sozu/html/404.html
COPY lib/assets/503.html /etc/sozu/html/503.html

ENTRYPOINT ["/usr/local/bin/sozu"]
CMD ["start", "-c", "/etc/sozu/config.toml"]

0 comments on commit 1b99382

Please sign in to comment.