|
# tunnel/Dockerfile
|
|
FROM alpine:3.19
|
|
|
|
RUN apk add --no-cache \
|
|
autossh \
|
|
openssh-client
|
|
|
|
# Директория для SSH ключей
|
|
RUN mkdir -p /root/.ssh && \
|
|
chmod 700 /root/.ssh
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |