Merge pull request #276 from weisdd/bugfix/dockerfile-media-permissions

Dockerfile: Fixed file permissions for media
This commit is contained in:
Tobias Genannt 2020-05-06 18:40:00 +02:00 committed by GitHub
commit 5cb8e97e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ WORKDIR /opt/netbox/netbox
# container startup. # container startup.
# Must set permissions for '/opt/netbox/netbox/media' directory # Must set permissions for '/opt/netbox/netbox/media' directory
# to g+w so that pictures can be uploaded to netbox. # to g+w so that pictures can be uploaded to netbox.
RUN mkdir static && chmod g+w static media RUN mkdir static && chmod -R g+w static media
ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ] ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ]