From f36315104549626bdc16221c6296fb12bce04fc6 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Tue, 12 May 2020 01:34:06 +0000 Subject: [PATCH] Fix dockerfile for use with nginx-proxy. Use port 80 on local compose by default. --- Dockerfile | 3 ++- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bbda490..2f35189 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,11 @@ COPY . /src/ RUN make -FROM alpine +FROM scratch ENTRYPOINT ["/srv/smartswitch-server"] USER smartswitch +EXPOSE 7200 COPY --from=env /etc/passwd /etc/group /etc/ COPY --from=build --chown=smartswitch /src/build/ /srv/ diff --git a/docker-compose.yml b/docker-compose.yml index 68e9594..55870e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,9 +5,9 @@ services: build: . environment: DEBUG: "true" - LISTEN_PORT: "7200" + PORT: "80" WEBHOOK_CONFIG_FILE: "/config/webhooks.yml" volumes: - "./webhooks.yml.example:/config/webhooks.yml" ports: - - "7200:7200" + - "80:80"