From 98e918b428614fae9be795eebf32958d809b165d Mon Sep 17 00:00:00 2001 From: Muscle Date: Fri, 17 May 2024 15:01:42 +0900 Subject: [PATCH] fix buildx error --- Dockerfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5620d49cd..036ff085c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -175,12 +175,18 @@ RUN chmod +x /home/steam/server/*.sh && \ ln -sf /home/steam/server/autopause.sh /usr/local/bin/autopause && \ ln -sf /home/steam/server/autopaused-ctl.sh /usr/local/sbin/autopaused-ctl -# install mitmproxy addons & certs +# install mitmproxy addons RUN mkdir -p /home/steam/autopause/addons && \ mv /home/steam/server/PalIntercept.py ../autopause/addons/ && \ - chown -R steam:steam /home/steam/autopause && \ - ln -sf /home/steam/.mitmproxy/mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy.crt && \ - mv /home/steam/server/files/sudoers-steam /etc/sudoers.d/ + chown -R steam:steam /home/steam/autopause + +# Preparation to incorporate ca-cert generated at runtime by mitmproxy. +RUN mkdir -p /home/steam/.mitmproxy +RUN touch /home/steam/.mitmproxy/mitmproxy-ca-cert.pem +RUN chown -R steam:steam /home/steam/.mitmproxy +RUN ln -sf /home/steam/.mitmproxy/mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy.crt +RUN rm /home/steam/.mitmproxy/mitmproxy-ca-cert.pem +RUN mv /home/steam/server/files/sudoers-steam /etc/sudoers.d/ WORKDIR /home/steam/server