Fix dockerfile for use with nginx-proxy. Use port 80 on local compose by default.

This commit is contained in:
Anna Rose 2020-05-12 01:34:06 +00:00
parent 63539b5bc1
commit f363151045
2 changed files with 4 additions and 3 deletions

View File

@ -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/

View File

@ -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"