Added a working backend container

This commit is contained in:
cami 2021-06-22 00:58:08 +02:00
parent 60415ad83f
commit 921544b76f
10 changed files with 143 additions and 16 deletions

View file

@ -1,19 +1,11 @@
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.9
FROM python
EXPOSE 5000
WORKDIR /opt/
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE 1
COPY requirements.txt .
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED 1
RUN pip install -r requirements.txt
# Install pip requirements
ADD requirements.txt .
RUN python -m pip install -r requirements.txt
WORKDIR /app
ADD . /app
COPY /src .
CMD ["flask", "run"]
CMD [ "python", "app.py" ]