File size: 554 Bytes
ebd6045
 
 
 
 
ddfa897
ebd6045
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3-alpine

LABEL maintainer='<author>'
LABEL version='0.0.0-dev.0-build.0'
RUN apk update && apk add git && git clone https://github.com/huashengdun/webssh.git  /code
COPY settings.py /code/webssh/settings.py
WORKDIR /code
RUN \

  apk add --no-cache libc-dev libffi-dev gcc && \

  pip install -r requirements.txt --no-cache-dir && \
  apk del gcc libc-dev libffi-dev && \
  addgroup webssh && \
  adduser -Ss /bin/false -g webssh webssh && \
  chown -R webssh:webssh /code

EXPOSE 8888/tcp
USER webssh
CMD ["python", "run.py"]