Skip to content

Commit

Permalink
Merge pull request #1163 from anonkey/fix-docker-build
Browse files Browse the repository at this point in the history
build: fix dockerfile
  • Loading branch information
FlorentinDUBOIS authored Dec 26, 2024
2 parents c5ff06a + 93a4ea4 commit 8bc671d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 180 deletions.
178 changes: 2 additions & 176 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN apk add --no-cache llvm-libunwind \
COPY . /usr/src/sozu
WORKDIR /usr/src/sozu

RUN cargo vendor --locked
RUN mkdir .cargo
RUN cargo vendor --locked >.cargo/config.toml
RUN cargo build --release --frozen

FROM alpine:$ALPINE_VERSION as bin
Expand All @@ -38,8 +39,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"]
7 changes: 6 additions & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ nom = { version = "^7.1.3", default-features = true, features = ["std"] }
poule = "^0.3.2"
rand = "^0.8.5"
regex = "^1.11.0"
rustls = { version = "^0.23.14", features = ["ring"] }
rustls = { version = "^0.23.14", default-features = false, features = [
"ring",
"logging",
"std",
"tls12",
] }
rustls-pemfile = "^2.2.0"
rusty_ulid = "^2.0.0"
sha2 = "^0.10.8"
Expand Down

0 comments on commit 8bc671d

Please sign in to comment.