We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9d959f + 309d912 commit 4aec063Copy full SHA for 4aec063
.dockerignore
@@ -0,0 +1 @@
1
+.git
Dockerfile
@@ -1,11 +1,17 @@
-FROM python:3.7-slim
+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 \
- groupadd -r webssh && \
- useradd -r -s /bin/false -g webssh webssh && \
- chown -R webssh:webssh /code && \
- pip install -r requirements.txt
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
0 commit comments