Update application name.
This commit is contained in:
parent
0b8134bbcf
commit
8b28228326
5 changed files with 9 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
FROM alpine:latest as env
|
||||
|
||||
RUN apk --update add ca-certificates
|
||||
RUN addgroup -S smartswitch && adduser -S smartswitch -G smartswitch
|
||||
RUN addgroup -S gpio-webhook && adduser -S gpio-webhook -G gpio-webhook
|
||||
|
||||
|
||||
FROM golang:1.14 AS build
|
||||
|
@ -13,11 +13,11 @@ RUN make build
|
|||
|
||||
FROM scratch
|
||||
|
||||
ENTRYPOINT ["/srv/smartswitch-server"]
|
||||
USER smartswitch
|
||||
ENTRYPOINT ["/srv/gpio-webhook-server"]
|
||||
USER gpio-webhook
|
||||
EXPOSE 7200
|
||||
|
||||
COPY --from=env /etc/passwd /etc/group /etc/
|
||||
COPY --from=build --chown=smartswitch /src/build/ /srv/
|
||||
COPY --from=build --chown=gpio-webhook /src/build/ /srv/
|
||||
COPY --from=env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue