Skip to content

Commit

Permalink
feat: switched to lighter alpine containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverth committed Oct 29, 2024
1 parent d521e55 commit 0378ced
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM rust AS builder
FROM rust:alpine AS builder
RUN apk add musl-dev
WORKDIR /usr/src/ssurlss
COPY . .
RUN cargo install --path . --root /usr/local/cargo/

FROM debian
FROM alpine
#RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/ssurlss /ssurlss
RUN chmod +x /ssurlss
Expand Down

0 comments on commit 0378ced

Please sign in to comment.