From cd475a533835aa923970bfe9c7c5b2a46c3040c0 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 8 Jul 2020 14:13:35 +1200 Subject: [PATCH] feat(docker): expose port 8000 in Dockerfile (#4016) --- build/linux/Dockerfile | 4 ++++ build/linux/alpine.Dockerfile | 4 ++++ build/linux/toolkit.Dockerfile | 5 +++-- build/windows2016/nanoserver/Dockerfile | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/build/linux/Dockerfile b/build/linux/Dockerfile index dbaffed51..7427e5f5b 100644 --- a/build/linux/Dockerfile +++ b/build/linux/Dockerfile @@ -1,7 +1,11 @@ FROM portainer/base + COPY dist / + VOLUME /data WORKDIR / + EXPOSE 9000 +EXPOSE 8000 ENTRYPOINT ["/portainer"] diff --git a/build/linux/alpine.Dockerfile b/build/linux/alpine.Dockerfile index d3e4a73e9..3825fb13f 100644 --- a/build/linux/alpine.Dockerfile +++ b/build/linux/alpine.Dockerfile @@ -1,7 +1,11 @@ FROM alpine:latest + COPY dist / + VOLUME /data WORKDIR / + EXPOSE 9000 +EXPOSE 8000 ENTRYPOINT ["/portainer"] diff --git a/build/linux/toolkit.Dockerfile b/build/linux/toolkit.Dockerfile index 1f1ac4376..1f7938df3 100644 --- a/build/linux/toolkit.Dockerfile +++ b/build/linux/toolkit.Dockerfile @@ -1,7 +1,8 @@ FROM ubuntu -# Expose port for the Portainer UI +# Expose port for the Portainer UI and Edge server EXPOSE 9000 +EXPOSE 8000 WORKDIR /src/portainer @@ -36,4 +37,4 @@ RUN cd /tmp \ ENV PATH "$PATH:/usr/local/go/bin" # Confirm installation -RUN go version && node -v && yarn -v \ No newline at end of file +RUN go version && node -v && yarn -v diff --git a/build/windows2016/nanoserver/Dockerfile b/build/windows2016/nanoserver/Dockerfile index f6ae5cfb0..f41f276d7 100644 --- a/build/windows2016/nanoserver/Dockerfile +++ b/build/windows2016/nanoserver/Dockerfile @@ -5,5 +5,6 @@ COPY dist / WORKDIR / EXPOSE 9000 +EXPOSE 8000 ENTRYPOINT ["/portainer.exe"]