forked from jnovack/autossh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm64v8
49 lines (41 loc) · 1.4 KB
/
Dockerfile.arm64v8
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
43
44
45
46
47
48
49
FROM arm64v8/alpine:latest
# Copy downloaded architecture emulation static binary
COPY qemu-aarch64-static /usr/bin/
ARG APPLICATION="myapp"
ARG BUILD_RFC3339="1970-01-01T00:00:00Z"
ARG REVISION="local"
ARG DESCRIPTION="no description"
ARG PACKAGE="user/repo"
ARG VERSION="dirty"
LABEL org.opencontainers.image.ref.name="${PACKAGE}" \
org.opencontainers.image.created=$BUILD_RFC3339 \
org.opencontainers.image.authors="Justin J. Novack <[email protected]>" \
org.opencontainers.image.documentation="https://github.com/${PACKAGE}/README.md" \
org.opencontainers.image.description="${DESCRIPTION}" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/${PACKAGE}" \
org.opencontainers.image.revision=$REVISION \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.url="https://hub.docker.com/r/${PACKAGE}/"
RUN \
apk --no-cache add \
autossh \
dumb-init && \
chmod g+w /etc/passwd
ENV \
AUTOSSH_PIDFILE=/tmp/autossh.pid \
AUTOSSH_POLL=30 \
AUTOSSH_GATETIME=30 \
AUTOSSH_FIRST_POLL=30 \
AUTOSSH_LOGLEVEL=0 \
AUTOSSH_LOGFILE=/dev/stdout
ENV \
APPLICATION="${APPLICATION}" \
BUILD_RFC3339="${BUILD_RFC3339}" \
REVISION="${REVISION}" \
DESCRIPTION="${DESCRIPTION}" \
PACKAGE="${PACKAGE}" \
VERSION="${VERSION}"
COPY ./rootfs/entrypoint.sh /entrypoint.sh
COPY ./rootfs/version.sh /version.sh
ENTRYPOINT [ "/entrypoint.sh" ]