mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-09 19:57:49 +02:00
Support running container as an arbitrary user of the root group (#138)
* Support OpenShift containers. * Improve comment wording Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@googlemail.com>
This commit is contained in:
@@ -47,6 +47,8 @@ EXPOSE 9090
|
|||||||
# Activate virtual env
|
# Activate virtual env
|
||||||
ENV VIRTUAL_ENV /opt/venv
|
ENV VIRTUAL_ENV /opt/venv
|
||||||
ENV PATH /opt/venv/bin:$PATH
|
ENV PATH /opt/venv/bin:$PATH
|
||||||
|
# Allow running containers as an an arbitrary user in the root group, to support deployment scenarios like OpenShift, Podman
|
||||||
|
RUN ["chmod", "g+w", "."]
|
||||||
# Run bootstrap logic
|
# Run bootstrap logic
|
||||||
RUN ["chmod", "+x", "./bootstrap.sh"]
|
RUN ["chmod", "+x", "./bootstrap.sh"]
|
||||||
CMD ["./bootstrap.sh"]
|
CMD ["./bootstrap.sh"]
|
||||||
|
Reference in New Issue
Block a user