Commit Graph

16 Commits

Author SHA1 Message Date
ZeroNet 108a3de433
Update Dockerfile 2020-03-24 02:26:54 +01:00
ZeroNet 740fe65355
Update Dockerfile 2020-03-24 02:09:57 +01:00
ZeroNet abde3d4cf7
Update Dockerfile 2020-03-24 01:58:33 +01:00
Vadim Ushakov 945687bdad Fix the order of commands in Dockerfile to make use of the caching of intermediate Docker images.
In py2 version, `COPY . /root` was placed after `RUN apk ...`, so that the result of `RUN apk ...` can be cached by Docker.

In py3 version, the commands were reordered to make the file `/root/requirements.txt` available for `pip install`. That prevents caching, and the docker image every time is rebuild from scrach.

To enable the caching back again, we can `COPY` just the single file `requirements.txt` before running other commands. Since the file is unmodified most of the time, the resulting image can be effectively cached. The other ZeroNet files are copied after doing `RUN apk ...`, as in the previous version.
2019-07-03 19:18:54 +07:00
krzotr 490b1dc01b
Updated python version in Dockerfile 2019-04-10 23:08:09 +02:00
Sandro Jäckel a8a271e6fb
Update Dockerfile
Update to Alpine 3.8
Apply best practices eg:
- Don't upgrade
- Add --no-cache-dir to pip install
- Remove removing of any tmp folder as it is deprecated
- Format RUN block nicer
2018-12-08 13:32:28 +01:00
rllola 9b046ecc75 Change to port 26552 2018-04-18 04:10:11 +02:00
rllola 75879de47a Force the use of port 15441 inside the container 2018-04-06 00:25:53 +02:00
shortcutme bca5d8a6c5
Use msgpack pip package everywhere 2018-02-27 02:48:15 +01:00
Jon P 6e51b5ba32 Update Dockerfile 2017-07-17 16:08:18 +02:00
Aitor Pazos 39dc00ad78 Make Tor optional in the Docker image and disable it by default as it's usage may be not allowed by hosting providers 2016-09-19 23:00:58 +01:00
Aitor Pazos 9e68a6f7e7 Update base image to ubuntu 16.04 LTS and add tor support to it.
In order to keep the Dockerfile simple, needed opotions have been appended to package provided torrc file and the /etc/init.d/tor script is used to start tor. If further customisation is desired, a wrapper script should be created to have further control on the startup. This would allow things like specifying external (tor) proxies and disable tor startup in those situations.
2016-09-18 19:06:51 +01:00
Gyula Weber fe0eafc262 apt-get commands should be in one line 2016-03-17 20:12:30 +01:00
Ben Sarmiento 2834a2d987 add data folder as docker data volume 2016-03-03 04:11:56 +08:00
Felix Imobersteg 4aa21c7c6f Fix pyconfig.h: No such file or directory 2015-05-31 16:16:57 +02:00
Felix Imobersteg 310ed6f916 Added Dockerfile 2015-05-27 15:13:36 +02:00