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
Some checks failed
Build and Publish Docker Image (Gitea Registry) / docker (push) Failing after 7s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
FROM ghcr.io/ptero-eggs/steamcmd:debian
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends libnss-wrapper \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
@@ -7,5 +8,6 @@ RUN apt-get update \
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
USER container
|
||||
WORKDIR /home/container
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user