mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
34a620e57b
* feat(cibuild): add buildx multi arch builds * chore: add changelog for arm64 * temporarily enable docker ci job for PRs * Update cibuild.py * Update cibuild.py * chore(cibuild): create docker-container xbuilder * chore(cibuild): fix lint * temporarily remove run check to see error message * Update cibuild.py * Update cibuild.py * Update cibuild.py * Update main.yml * Update main.yml * Update main.yml * Update cibuild.py * Update cibuild.py * Update Dockerfile * cleanup #1 * next test * move to test branch * fixup * now upload * enable armv6/7 * use multi-stage build to reduce image size * armv7? * drop armv6/armv7 Co-authored-by: Niels Hofmans <hello@ironpeak.be>
26 lines
612 B
Docker
26 lines
612 B
Docker
FROM python:3.9-buster as wheelbuilder
|
|
|
|
ARG MITMPROXY_WHEEL
|
|
COPY $MITMPROXY_WHEEL /wheels/
|
|
RUN pip install wheel && pip wheel --wheel-dir /wheels /wheels/${MITMPROXY_WHEEL}
|
|
|
|
FROM python:3.9-slim-buster
|
|
|
|
RUN useradd -mU mitmproxy
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends gosu \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=wheelbuilder /wheels /wheels
|
|
RUN pip install --no-index --find-links=/wheels mitmproxy
|
|
RUN rm -rf /wheels
|
|
|
|
VOLUME /home/mitmproxy/.mitmproxy
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
|
|
EXPOSE 8080 8081
|
|
|
|
CMD ["mitmproxy"]
|