Skip to content

Commit d9c340c

Browse files
committed
start moving files into src folder and add setup.py
1 parent fd45a6f commit d9c340c

File tree

13 files changed

+22
-9
lines changed

13 files changed

+22
-9
lines changed

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
FROM python:3.9-slim-buster
22

3-
COPY requirements.txt /tmp
3+
# RUN apt install gcc libpq (no longer needed bc we use psycopg2-binary)
4+
5+
COPY requirements.txt /tmp/
46
RUN pip install -r /tmp/requirements.txt
57

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

0 commit comments

Comments
 (0)