-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
42 lines (37 loc) · 1.66 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
37
38
39
40
41
42
FROM docker:dind
ARG STAKKR_VERSION
# Stakkr + dependencies installation
RUN apk add --no-cache \
alpine-sdk cargo curl git libffi-dev openssl-dev \
python3 python3-dev \
py3-bcrypt py3-cryptography py3-pynacl \
py3-distro py3-jinja2 py3-pip py3-requests py3-setuptools py3-wheel rust && \
# Install / upgrade pip
pip install --upgrade pip && \
# Install stakkr
pip install --pre stakkr=="${STAKKR_VERSION}" && \
# Clean
apk del \
alpine-sdk cargo curl libffi-dev openssl-dev \
python3-dev \
py3-distro py3-setuptools py3-wheel rust && \
rm -rf /var/cache/apk/* /var/log/*
# Create user / group
RUN addgroup stakkr && \
adduser -s /bin/ash -D -S -G stakkr stakkr && \
addgroup stakkr root
EXPOSE 80 443
# At the end as it changes everytime ;)
ARG BUILD_DATE
ARG DOCKER_TAG
ARG VCS_REF
LABEL maintainer="Emmanuel Dyan <[email protected]>" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name=${DOCKER_TAG} \
org.label-schema.description="Stakkr image with docker installed" \
org.label-schema.url="https://hub.docker.com/r/stakkr/stakkr" \
org.label-schema.vcs-url="https://github.com/stakkr-org/stakkr" \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.schema-version="1.0" \
org.label-schema.vendor="edyan" \
org.label-schema.docker.cmd="docker run -d --rm ${DOCKER_TAG}"