Fix dockerfile for use with nginx-proxy. Use port 80 on local compose by default.
This commit is contained in:
parent
63539b5bc1
commit
f363151045
|
@ -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/
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user