#7 Docker container should be creating its own venv, not using host's venv.

This commit was merged in pull request #18.
This commit is contained in:
2023-03-18 21:37:30 -04:00
parent 18e651f8b9
commit 21428c520d
2 changed files with 7 additions and 3 deletions

View File

@@ -3,8 +3,14 @@ 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 ./ /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