Skip to content

Commit e792564

Browse files
author
Lifei Chen
authored
Merge pull request #21 from hustclf/feature-dockerfile
Support run with docker
2 parents 2c8b737 + bb3fcfe commit e792564

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
that_is_me_on_github.md
2+
LICENSE
3+
Dockerfile
4+
tests/
5+
.circleci/
6+
.pytest_cache/
7+
Pipfile
8+
Pipfile.lock

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM python:3.6.8-alpine
2+
3+
LABEL maintainer="hustclf@gmail.com" author="hustclf"
4+
5+
# set pip mirror to speed up installation, using aliyun as default.
6+
WORKDIR /root
7+
COPY pip.conf .pip/
8+
9+
# copy source code
10+
WORKDIR /usr/src/that_is_me_on_github
11+
COPY . .
12+
13+
# install requirements
14+
RUN pip install -r requirements.txt
15+
16+
ENTRYPOINT ["python", "that_is_me_on_github.py"]

pip.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[global]
2+
trusted-host = mirrors.aliyun.com
3+
index-url = http://mirrors.aliyun.com/pypi/simple

0 commit comments

Comments
 (0)