]> cat aescling's git repositories - mastodon.git/commitdiff
Dockerfile: put back EXPOSE directive (#12279)
authorDavid Caldwell <david+github@porkrind.org>
Mon, 4 Nov 2019 11:56:21 +0000 (03:56 -0800)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 4 Nov 2019 11:56:21 +0000 (12:56 +0100)
[Rkt](https://coreos.com/rkt) doesn't allow ports to be exposed to containers unless they are declared in the container manifest. Re-adding EXPOSE back in (removed in 1dbf993bce5627e2c3fcab6e9c63b5279dff018a) allows the container to be used on rkt based systems.

Dockerfile

index e963674a55eda713d915e846401447e762edfacd..eaa92f0c224cd14162a8a9bce1b9a4ef0684c4f3 100644 (file)
@@ -123,3 +123,4 @@ RUN cd ~ && \
 # Set the work dir and the container entry point
 WORKDIR /opt/mastodon
 ENTRYPOINT ["/tini", "--"]
+EXPOSE 3000 4000