taito0 commited on
Commit
82b0118
·
verified ·
1 Parent(s): 07186ee

Create Dockerfile

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