mirror of
https://github.com/Dannecron/netology-devops-gitlab.git
synced 2025-12-25 23:32:34 +03:00
add dockerfile and readme
This commit is contained in:
12
docker/Dockerfile
Normal file
12
docker/Dockerfile
Normal file
@@ -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"]
|
||||||
Reference in New Issue
Block a user