diff options
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -10,11 +10,13 @@ ARG ssh_sock_path="$ssh_sock_dir/ssh-agent.sock" ENV SSH_AUTH_SOCK "$ssh_sock_path" COPY ["requirements.txt", "/tmp/"] -RUN pip3 install -r /tmp/requirements.txt +RUN python3 -m venv /tmp/venv && \ + . /tmp/venv/bin/activate && \ + python3 -m pip install -r /tmp/requirements.txt COPY ["docker/entrypoint.sh", "/"] COPY ["cgitize/", "/usr/src/cgitize/"] WORKDIR /usr/src ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] -CMD ["python3", "-m", "cgitize.main"] +CMD . /tmp/venv/bin/activate && python3 -m cgitize.main |