aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-08-01 17:53:45 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-08-01 17:54:21 +0300
commitf0d2999ad07e2765158612aa4d502ae28b9c0cf3 (patch)
tree13787f961300b3bbb970d03e92e30115340fd03e /Dockerfile
parentfigure out setup.cfg vs. requirements.txt (diff)
downloadcgitize-f0d2999ad07e2765158612aa4d502ae28b9c0cf3.tar.gz
cgitize-f0d2999ad07e2765158612aa4d502ae28b9c0cf3.zip
docker: fix Dockerfile after messing with requirements.txt
Diffstat (limited to 'Dockerfile')
-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