Usability improvements
This commit is contained in:
parent
55f836776b
commit
6394df4131
13
Dockerfile
13
Dockerfile
|
@ -66,8 +66,10 @@ WORKDIR /app/run
|
||||||
# And give it to the user the application will run as.
|
# And give it to the user the application will run as.
|
||||||
RUN chown ${WORMHOLE_USER_NAME} /app/run
|
RUN chown ${WORMHOLE_USER_NAME} /app/run
|
||||||
|
|
||||||
# Facilitate network connections to the application.
|
# Facilitate network connections to the application. The rendezvous server
|
||||||
|
# listens on 4000 by default. The transit relay server on 4001.
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
EXPOSE 4001
|
||||||
|
|
||||||
# Put the source somewhere pip will be able to see it.
|
# Put the source somewhere pip will be able to see it.
|
||||||
ADD . /src
|
ADD . /src
|
||||||
|
@ -78,6 +80,9 @@ RUN /app/env/bin/pip install /src
|
||||||
# Switch to a non-root user.
|
# Switch to a non-root user.
|
||||||
USER 1000
|
USER 1000
|
||||||
|
|
||||||
CMD /app/env/bin/wormhole-server start \
|
# This makes starting a server succinct.
|
||||||
--rendezvous tcp:4000 \
|
ENTRYPOINT ["/app/env/bin/wormhole-server", "start", "--no-daemon"]
|
||||||
--no-daemon
|
|
||||||
|
# By default, start up a pretty reasonable server. This can easily be
|
||||||
|
# overridden by another command which will get added to the entrypoint.
|
||||||
|
CMD ["--rendezvous", "tcp:4000", "--transit", "tcp:4001"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user