Initalized git repo, added basic files and a logger

This commit is contained in:
Stanislas Jouffroy 2024-02-11 00:43:10 +01:00
parent 50835e924c
commit aa155b2748
10 changed files with 479 additions and 0 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM python:3.10 as build
WORKDIR /tmp
RUN pip install poetry
COPY ./pyproject.toml ./poetry.lock* /tmp/
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
FROM python:3.10
WORKDIR /app
COPY --from=build /tmp/requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY resa_padel/ /app/
CMD python .