Skip to content

Commit 810d76e

Browse files
committed
start moving files into src folder and add setup.py
1 parent a1b098c commit 810d76e

13 files changed

Lines changed: 15 additions & 5 deletions

File tree

‎Dockerfile‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ FROM python:3.8-alpine
33
RUN apk add --no-cache --virtual .build-deps gcc postgresql-dev musl-dev python3-dev
44
RUN apk add libpq
55

6-
COPY requirements.txt /tmp
6+
COPY requirements.txt /tmp/
77
RUN pip install -r /tmp/requirements.txt
88

99
RUN apk del --no-cache .build-deps
1010

11-
RUN mkdir -p /code
12-
COPY *.py /code/
13-
WORKDIR /code
14-
ENV FLASK_APP=flask_app.py FLASK_DEBUG=1 PYTHONUNBUFFERED=1
11+
RUN mkdir -p /src
12+
COPY src/ /src/
13+
RUN pip install -e /src
14+
COPY tests/ /tests/
15+
16+
WORKDIR /src
17+
ENV FLASK_APP=allocation/entrypoints/flask_app.py FLASK_DEBUG=1 PYTHONUNBUFFERED=1
1518
CMD flask run --host=0.0.0.0 --port=80
File renamed without changes.

0 commit comments

Comments
 (0)