Skip to content

Commit

Permalink
fix buildx error
Browse files Browse the repository at this point in the history
  • Loading branch information
MusclePr committed May 17, 2024
1 parent cc2de45 commit 1288af1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,15 @@ 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 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/steam && \
chmod 0440 /etc/sudoers.d/steam

WORKDIR /home/steam/server

Expand Down
1 change: 1 addition & 0 deletions scripts/files/sudoers-steam
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
steam ALL=(ALL:ALL) NOPASSWD: /usr/sbin/update-ca-certificates

0 comments on commit 1288af1

Please sign in to comment.