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
|
RUN make
|
||||||
|
|
||||||
|
|
||||||
FROM alpine
|
FROM scratch
|
||||||
|
|
||||||
ENTRYPOINT ["/srv/smartswitch-server"]
|
ENTRYPOINT ["/srv/smartswitch-server"]
|
||||||
USER smartswitch
|
USER smartswitch
|
||||||
|
EXPOSE 7200
|
||||||
|
|
||||||
COPY --from=env /etc/passwd /etc/group /etc/
|
COPY --from=env /etc/passwd /etc/group /etc/
|
||||||
COPY --from=build --chown=smartswitch /src/build/ /srv/
|
COPY --from=build --chown=smartswitch /src/build/ /srv/
|
||||||
|
|
|
@ -5,9 +5,9 @@ services:
|
||||||
build: .
|
build: .
|
||||||
environment:
|
environment:
|
||||||
DEBUG: "true"
|
DEBUG: "true"
|
||||||
LISTEN_PORT: "7200"
|
PORT: "80"
|
||||||
WEBHOOK_CONFIG_FILE: "/config/webhooks.yml"
|
WEBHOOK_CONFIG_FILE: "/config/webhooks.yml"
|
||||||
volumes:
|
volumes:
|
||||||
- "./webhooks.yml.example:/config/webhooks.yml"
|
- "./webhooks.yml.example:/config/webhooks.yml"
|
||||||
ports:
|
ports:
|
||||||
- "7200:7200"
|
- "80:80"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user