Dockerfile: Expose port 5000

Exposing the port is very helpful on the latest version of Synology's Docker integration into their DiskStation Manager (DSM). Once you expose the port, you can easily set up a reverse proxy on it.

Other Docker-based products might also benefit from it. Therefore I'm contributing this change here.

Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com> (github: thopiekar)
This commit is contained in:
Thomas Karl Pietrowski 2022-11-04 19:23:20 +01:00 committed by GitHub
parent 8d98040d37
commit ef7e99f37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,9 @@ RUN python ./setup.py develop
# run as non priviledged user # run as non priviledged user
USER app USER app
# expose the default http port
EXPOSE 5000
# run the server by default # run the server by default
ENTRYPOINT ["/usr/bin/dumb-init", "/app/docker-entrypoint.sh"] ENTRYPOINT ["/usr/bin/dumb-init", "/app/docker-entrypoint.sh"]
CMD ["server"] CMD ["server"]