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