Skip to content

Commit

Permalink
decrease layer count
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvanloef committed Jan 26, 2024
1 parent 5b3860e commit 0e8cbd1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN wget -q https://github.com/itzg/rcon-cli/releases/download/1.6.4/rcon-cli_1.6.4_linux_amd64.tar.gz -O - | tar -xz
RUN mv rcon-cli /usr/bin/rcon-cli
RUN wget -q https://github.com/itzg/rcon-cli/releases/download/1.6.4/rcon-cli_1.6.4_linux_amd64.tar.gz -O - | tar -xz && \

Check failure on line 11 in Dockerfile

View workflow job for this annotation

GitHub Actions / dockerlint

DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
mv rcon-cli /usr/bin/rcon-cli

ENV PORT= \
PUID=1000 \
Expand All @@ -29,9 +29,8 @@ ENV PORT= \
TZ=UTC

COPY ./scripts/* /home/steam/server/
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh

RUN mv /home/steam/server/backup.sh /usr/local/bin/backup
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh && \
mv /home/steam/server/backup.sh /usr/local/bin/backup

WORKDIR /home/steam/server

Expand Down

0 comments on commit 0e8cbd1

Please sign in to comment.