diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..8741c17 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,12 @@ +FROM centos:7 + +RUN yum install -y python3 curl +COPY src/requirements.txt /tmp/requirements.txt + +RUN pip3 install -r /tmp/requirements.txt + +COPY src/ /python_api/ + +EXPOSE 5290 + +CMD ["python3", "/python_api/python-api.py"] diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..dc494bb --- /dev/null +++ b/readme.md @@ -0,0 +1,7 @@ +## Part of homework 9.6 + +Сборка образа: + +```shell +docker build -t localhost/python-api:latest -f docker/Dockerfile . +``` \ No newline at end of file