Skip to content

Commit

Permalink
Update docker syntax version
Browse files Browse the repository at this point in the history
Use heredocs for multi-line script.
  • Loading branch information
rubensa committed Oct 8, 2024
1 parent cc7ce76 commit f5ee9d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1.4
FROM ubuntu
LABEL author="Ruben Suarez <[email protected]>"

Expand All @@ -9,8 +10,10 @@ ARG TINI_VERSION=v0.19.0

# Add Tini
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${TARGETARCH} /sbin/tini
RUN chown root:root /sbin/tini \
&& chmod 4755 /sbin/tini
RUN <<EOT
chown root:root /sbin/tini
chmod 4755 /sbin/tini
EOT

# Execute the init command
ENTRYPOINT [ "/sbin/tini", "--" ]
Expand Down

0 comments on commit f5ee9d6

Please sign in to comment.