Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffd071c

Browse files
committed
start moving files into src folder and add setup.py
1 parent 9a4d80f commit ffd071c

File tree

13 files changed

+15
-5
lines changed

13 files changed

+15
-5
lines changed

Dockerfile

+8-5
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=entrypoints/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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/allocation/service_layer/__init__.py

Whitespace-only changes.
File renamed without changes.

src/setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from setuptools import setup
2+
3+
setup(
4+
name='allocation',
5+
version='0.1',
6+
packages=['allocation'],
7+
)

0 commit comments

Comments
 (0)