17 lines
338 B
Docker
17 lines
338 B
Docker
FROM python:3.10.9
|
|
|
|
WORKDIR /tmp
|
|
RUN python -m venv venv
|
|
COPY ./requirements.txt /code/requirements.txt
|
|
RUN . venv/bin/activate
|
|
RUN python -m pip install -r /code/requirements.txt
|
|
COPY venv /code/venv
|
|
|
|
WORKDIR /code
|
|
COPY app app
|
|
COPY main.py main.py
|
|
COPY config.py config.py
|
|
COPY boot.sh boot.sh
|
|
COPY migrations migrations
|
|
CMD sh boot.sh
|