File size: 769 Bytes
9683b26 e529c23 9683b26 | 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 | FROM ghcr.io/erebe/wstunnel:latest
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
openssh-server \
sudo \
cron \
curl \
nginx \
&& rm -rf /var/lib/apt/lists/*
# "user" account with full, passwordless root via sudo
RUN useradd -m -s /bin/bash user && \
usermod -aG sudo user && \
echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 440 /etc/sudoers.d/user
# host keys generated ONCE at build time so they stay stable across restarts
# and sleep/wake cycles - only changes on an actual rebuild
RUN ssh-keygen -A
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 7860
ENTRYPOINT ["/entrypoint.sh"]
|