-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (24 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.8-slim-buster
RUN pip install --upgrade pip
ADD ./ /home/magon/tester
WORKDIR /home/magon/tester
RUN pip3 install -r requirements.txt
EXPOSE 5000
#ENTRYPOINT ["python3", "run.py"]
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
# syntax=docker/dockerfile:1
#WORKDIR /python-docker
#COPY requirements.txt requirements.txt
#RUN pip3 install -r requirements.txt
#CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
# FROM python:3.8-alpine
# RUN apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev
# RUN apk add libpq
# COPY requirements.txt /tmp
# RUN pip install -r /tmp/requirements.txt
# RUN apk del --no-cache .build-deps
# RUN mkdir -p /app
# COPY . /app/
# WORKDIR /app
# ENV FLASK_APP=entrypoints/app.py FLASK_DEBUG=1 PYTHONUNBUFFERED=1
# CMD flask run --host=0.0.0.0 --port=80