Skip to content

Commit

Permalink
chore: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jan 6, 2024
1 parent 4094f2c commit eb70c06
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ RUN cargo build --release
FROM debian:bookworm-slim
LABEL org.opencontainers.image.authors "yinheli"
LABEL org.opencontainers.image.source https://github.com/yinheli/kungfu
RUN sed -i 's|deb.debian.org|mirrors.ustc.edu.cn|g' /etc/apt/sources.list && \
sed -i 's|security.debian.org|mirrors.ustc.edu.cn|g' /etc/apt/sources.list && \
apt-get update && apt-get install -y iptables
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y iptables && \
apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*
RUN mkdir /app
WORKDIR /app
COPY --from=builder /workspace/target/release/kungfu .
Expand Down

0 comments on commit eb70c06

Please sign in to comment.