-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (26 loc) · 1.02 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
31
32
33
34
35
36
FROM alpine:edge
MAINTAINER Abner G Jacobsen - http://daspanel.com <admin@daspanel.com>
# Set default env variables
ENV \
# Stop container initialization if error occurs in cont-init.d, fix-attrs.d script's
S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
# Timezone
TZ="UTC" \
# S6 overlay version
S6_OVERLAY_VERSION=v1.18.1.5
LABEL distro="alpine" distro_version="3.4" architecture="amd64"
RUN set -x \
# This folder is in $PATH by default but isn't created by default
&& mkdir -p /usr/local/sbin \
# Install minimal packages
&& apk add --no-cache ca-certificates wget ssmtp 'su-exec>=0.2' \
# Install s6 overlay
&& wget https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz --no-check-certificate -O /tmp/s6-overlay.tar.gz \
&& tar xvfz /tmp/s6-overlay.tar.gz -C / \
&& rm -f /tmp/s6-overlay.tar.gz \
&& rm -rf /var/cache/apk/* \
&& rm -rf /tmp/*
# Inject files in container file system
COPY rootfs /
ENTRYPOINT ["/init"]
CMD []