Fix Dockerfile: run apt and chmod as root, run container as container user.
Some checks failed
Build and Publish Docker Image (Gitea Registry) / docker (push) Failing after 7s

This commit is contained in:
alexveley
2026-04-25 01:36:40 -04:00
parent 9e3f2bc9aa
commit b0ce346577

View File

@@ -1,5 +1,6 @@
FROM ghcr.io/ptero-eggs/steamcmd:debian FROM ghcr.io/ptero-eggs/steamcmd:debian
USER root
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends libnss-wrapper \ && apt-get install -y --no-install-recommends libnss-wrapper \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
@@ -7,5 +8,6 @@ RUN apt-get update \
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
USER container
WORKDIR /home/container WORKDIR /home/container
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]