2
0
mirror of https://github.com/spritsail/alpine.git synced 2024-12-20 11:34:36 +00:00

Install su-exec from spritsail repo

Fix not removing libressl from 6abb9f9d03
This reduces the image size by ~0.5MiB
This commit is contained in:
Joe Groocock 2018-08-31 01:12:36 +01:00
parent e3badc0a5b
commit 9dfac476e2
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -1,9 +1,7 @@
ARG SU_EXEC_VER=0.3
ARG ALPINE_TAG=3.8
FROM alpine:$ALPINE_TAG
ARG SU_EXEC_VER
ARG ALPINE_TAG
LABEL maintainer="Spritsail <alpine@spritsail.io>" \
@ -11,19 +9,17 @@ LABEL maintainer="Spritsail <alpine@spritsail.io>" \
org.label-schema.name="Alpine Linux" \
org.label-schema.url="https://github.com/gliderlabs/docker-alpine" \
org.label-schema.description="Alpine Linux base image" \
org.label-schema.version=${ALPINE_TAG} \
io.spritsail.version.su-exec=${SU_EXEC_VER}
org.label-schema.version=${ALPINE_TAG}
# Override shell for sh-y debugging goodness
SHELL ["/bin/sh", "-exc"]
COPY skel/ /
ENV ENV="/etc/profile"
RUN apk --no-cache add \
tini \
libressl \
&& wget -qO /sbin/su-exec https://github.com/frebib/su-exec/releases/download/v${SU_EXEC_VER}/su-exec-alpine-$(uname -m) \
&& chmod +x /sbin/su-exec \
&& apk --no-cache del openssl
RUN sed -i '1ihttp://alpine.spritsail.io/spritsail' /etc/apk/repositories \
&& wget -P /etc/apk/keys https://alpine.spritsail.io/spritsail-alpine.rsa.pub \
&& apk --no-cache add \
su-exec \
tini
ENTRYPOINT ["/sbin/tini" , "--"]