-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.server
23 lines (19 loc) · 962 Bytes
/
Dockerfile.server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.17.1
RUN apk add --no-cache python3 py3-pip curl ca-certificates openssh-server rsync \
&& apk add --no-cache --virtual .build-deps git \
&& curl -L -O https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz \
&& tar -xzf ngrok-v3-stable-linux-amd64.tgz \
&& install -v -D ngrok /usr/local/bin/ngrok \
&& pip install supervisor
RUN pip install git+https://github.com/suda/supervisord-dependent-startup.git \
&& curl -L -O https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 \
&& install -v -D jq-linux64 /usr/local/bin/jq \
&& rm -f ngrok-stable-linux-amd64.zip ngrok jq-linux64 \
&& apk del .build-deps
# RUN
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
COPY etc/ /etc
COPY bin/ /usr/local/bin/
ENTRYPOINT ["supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]