wnum commited on
Commit
ebd6045
·
verified ·
1 Parent(s): b06fdd7

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3-alpine
2
+
3
+ LABEL maintainer='<author>'
4
+ LABEL version='0.0.0-dev.0-build.0'
5
+ RUN apk update && apk add git && git clone https://github.com/huashengdun/webssh.git /code
6
+ WORKDIR /code
7
+ RUN \
8
+ apk add --no-cache libc-dev libffi-dev gcc && \
9
+ pip install -r requirements.txt --no-cache-dir && \
10
+ apk del gcc libc-dev libffi-dev && \
11
+ addgroup webssh && \
12
+ adduser -Ss /bin/false -g webssh webssh && \
13
+ chown -R webssh:webssh /code
14
+
15
+ EXPOSE 8888/tcp
16
+ USER webssh
17
+ CMD ["python", "run.py"]