mirror of https://github.com/huashengdun/webssh
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
417 B
18 lines
417 B
FROM python:3-alpine |
|
|
|
LABEL maintainer='<author>' |
|
LABEL version='0.0.0-dev.0-build.0' |
|
|
|
ADD . /code |
|
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"]
|
|
|