/
Dockerfile.server
23 lines (19 loc) · 953 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/a/jYLcLYYDPtj/ngrok-2.3.17-linux-amd64.zip \
&& unzip ngrok-2.3.17-linux-amd64.zip \
&& 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"]