mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 22:10:15 +03:00
67f075b10d
Reduce the size of the runtime Docker image from `3.04GB` to `1.41GB`. ``` $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE runtime latest ab76231c78c5 9 minutes ago 1.41GB <none> <none> c8f70807b04f 4 hours ago 3.04GB ``` The image was bloated because of `RUN chmod` and `RUN chown` commands. When the `RUN` command modifies the file, it copies it to a new layer, resulting in a final image with multiple layers containing the same files. # Important Notes Note that copying directories with `COPY --chmod=5xx` sets the executable flag to both files and directories. While it is suboptimal (we only need the executable attribute for directories), having executable files in `/opt/enso` should not be an issue. Permissions can be narrowed further when the new Dockerfile `COPY` syntax is stabilized. |
||
---|---|---|
.. | ||
ydoc-server | ||
docker-entrypoint.sh | ||
Dockerfile |