aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 5378dd1..b722ec7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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