root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.
https://plik.root.gg
Other
1.42k stars 167 forks source link

rootless Docker image #474

Closed oupala closed 1 year ago

oupala commented 1 year ago

plik Docker image currently require to be executed as root.

The following change allow the image to be run as non root.

FROM dockerproxy.repos.tech.orange/rootgg/plik:1.3.6

USER root

RUN addgroup plik root

RUN chgrp -R root /home/plik \
 && chmod -R g+ws /home/plik

USER plik

If this could be embedded inside the official plik Docker image, this would make it much more portable!

camathieu commented 1 year ago

Plik docker is not intended to be run as root.

camathieu commented 1 year ago

Please see https://github.com/root-gg/plik/blob/master/documentation/docker.md for how to setup Plik using Docker

oupala commented 1 year ago

Thank you!