Adding S6 overlay version as an ARG

This commit is contained in:
Kalle Møller 2016-12-23 21:22:58 +01:00 committed by Graham Booker
parent 320457792c
commit 6c983dc00c

View File

@ -2,6 +2,8 @@ FROM ubuntu:16.04
ENV DEBIAN_FRONTEND="noninteractive" \
TERM="xterm"
ARG S6_OVERLAY_VERSION=v1.17.2.0
ENTRYPOINT ["/init"]
@ -16,7 +18,7 @@ RUN \
&& \
# Fetch and extract S6 overlay
curl -J -L -o /tmp/s6-overlay-amd64.tar.gz https://github.com/just-containers/s6-overlay/releases/download/v1.17.2.0/s6-overlay-amd64.tar.gz && \
curl -J -L -o /tmp/s6-overlay-amd64.tar.gz https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz && \
tar xzf /tmp/s6-overlay-amd64.tar.gz -C / && \
# Add user