-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautossh.alpine.Dockerfile
36 lines (30 loc) · 1.32 KB
/
autossh.alpine.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
# build: docker build --no-cache --progress=plain -t tobi312/tools:autossh -f autossh.alpine.Dockerfile .
# hadolint ignore=DL3007
FROM alpine:latest AS production
ARG VCS_REF
ARG BUILD_DATE
LABEL org.opencontainers.image.title="AutoSSH" \
org.opencontainers.image.authors="Tobias Hargesheimer <[email protected]>" \
org.opencontainers.image.version="${BUILD_DATE}.${VCS_REF}" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.revision="${VCS_REF}" \
org.opencontainers.image.description="AutoSSH: Automatically restart SSH sessions and tunnels." \
org.opencontainers.image.documentation="https://www.harding.motd.ca/autossh/ , https://github.com/Autossh/autossh" \
org.opencontainers.image.base.name="docker.io/library/alpine:latest" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/tools" \
org.opencontainers.image.source="https://github.com/Tob1as/docker-tools"
ENV \
AUTOSSH_PIDFILE=/tmp/autossh.pid \
AUTOSSH_POLL=30 \
AUTOSSH_GATETIME=30 \
AUTOSSH_FIRST_POLL=30 \
AUTOSSH_LOGLEVEL=0 \
AUTOSSH_LOGFILE=/dev/stdout
# hadolint ignore=DL3018
RUN apk --no-cache add \
autossh \
openssh-client
#USER nobody
ENTRYPOINT ["/usr/bin/autossh"]
#CMD ["--help"]