Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Nov 5, 2024
1 parent e2b23c2 commit c00f720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
uses: SlashNephy/.github/.github/workflows/docker-build.yml@master
with:
image-name: ghcr.io/vivid-lapin/mitmproxy
image-platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
image-platforms: linux/amd64,linux/arm64/v8
scan-image: false
context: .
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax = docker/dockerfile:experimental
FROM --platform=$TARGETPLATFORM python:3.9.15-slim-bullseye AS base
FROM --platform=$TARGETPLATFORM python:3.12.7-slim-bookworm AS base
ENV DEBIAN_FRONTEND "noninteractive"
RUN --mount=type=tmpfs,target=/root/.cargo apt update \
&& apt full-upgrade -y \
Expand All @@ -12,13 +12,11 @@ RUN --mount=type=tmpfs,target=/root/.cargo apt update \
libssl-dev \
gosu \
python3-grpcio python3-grpc-tools \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& export PATH="$HOME/.cargo/bin:$PATH" \
&& pip3 install mitmproxy google-cloud-pubsub protobuf --no-binary=grpcio \
&& pip3 install mitmproxy==11.0.0 google-cloud-pubsub==2.26.1 protobuf==5.28.2 msgpack==1.1.0 \
&& apt purge -y build-essential gosu \
&& apt autoremove -y \
&& apt clean -y \
&& rm -rf /var/lib/apt/lists $HOME/.rustup
&& rm -rf /var/lib/apt/lists

WORKDIR /app

Expand Down

0 comments on commit c00f720

Please sign in to comment.