diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-01 17:53:45 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-01 17:54:21 +0300 |
commit | f0d2999ad07e2765158612aa4d502ae28b9c0cf3 (patch) | |
tree | 13787f961300b3bbb970d03e92e30115340fd03e /Dockerfile | |
parent | figure out setup.cfg vs. requirements.txt (diff) | |
download | cgitize-f0d2999ad07e2765158612aa4d502ae28b9c0cf3.tar.gz cgitize-f0d2999ad07e2765158612aa4d502ae28b9c0cf3.zip |
docker: fix Dockerfile after messing with requirements.txt
Diffstat (limited to '')
-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 |