TP-Docker/api-frontend/Dockerfile

8 lines
152 B
Docker
Raw Permalink Normal View History

2021-10-26 11:17:08 +02:00
FROM python:2.7
ADD api.py /
2021-10-26 11:23:23 +02:00
ENV API_BACKEND_URL=0.0.0.0
2021-10-26 11:17:08 +02:00
ENV API_BACKEND_PORT=8001
EXPOSE 8000
RUN pip install requests flask
CMD [ "python", "api.py"]