-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (24 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# VERSION latest
# AUTHOR: Thomas Harning Jr <[email protected]>
# DESCRIPTION: Alpine linux base image with s6-overlay injected
FROM alpine:edge
MAINTAINER Thomas Harning Jr <[email protected]>
ENV S6_OVERLAY_RELEASE v3.1.2.1
ENV TMP_BUILD_DIR /tmp/build
# Pull in the overlay script binaries
ADD https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_RELEASE}/s6-overlay-noarch.tar.xz ${TMP_BUILD_DIR}/
ADD https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_RELEASE}/s6-overlay-noarch.tar.xz.sha256 ${TMP_BUILD_DIR}/
# Pull in the overlay architecture-specific binaries
ADD https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_RELEASE}/s6-overlay-x86_64.tar.xz ${TMP_BUILD_DIR}/
ADD https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_RELEASE}/s6-overlay-x86_64.tar.xz.sha256 ${TMP_BUILD_DIR}/
# Perform an apk upgrade, too to make sure all security updates are applied
# - do not anticipate compatibility issues at this small layer
RUN apk update && apk upgrade && \
cd ${TMP_BUILD_DIR} && \
sha256sum -c *.sha256 && \
tar -C / -Jxpf s6-overlay-noarch.tar.xz && \
tar -C / -Jxpf s6-overlay-x86_64.tar.xz && \
cd / && \
rm -rf /var/cache/apk/* && \
rm -rf ${TMP_BUILD_DIR}
ENTRYPOINT [ "/init" ]