Skip to content

Commit

Permalink
Merge pull request #2 from LANsible/update-0.5
Browse files Browse the repository at this point in the history
feat: update to 0.5.0, changes HTTPS port to 8443
  • Loading branch information
wilmardo authored May 4, 2024
2 parents bfb7c1f + f621ddf commit 30376e3
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Does not work on Alpine, objectbox install scripts fails
FROM golang:1.21-bullseye as builder
FROM golang:1.22-bullseye as builder

# https://gitlab.com/Nulide/findmydeviceserver/-/tags
# https://github.com/objectbox/objectbox-c/releases
ENV VERSION=v0.4.0 \
ENV VERSION=v0.5.0 \
GOPATH=/go

# Add unprivileged user
Expand Down Expand Up @@ -63,18 +63,17 @@ COPY --from=builder /libs/ /usr/lib/
COPY --from=builder --chown=findmydeviceserver:findmydeviceserver /data /data

# Setup default config.json
COPY --chown=findmydeviceserver:findmydeviceserver <<EOF /config/config.json
{
"PortSecure": 8081,
"PortUnsecure": 8080,
"IdLength": 5,
"MaxSavedLoc": 1000,
"MaxSavedPic": 10
}
COPY --chown=findmydeviceserver:findmydeviceserver <<EOF /config/config.yml
PortSecure: 8443
PortInsecure: 8080
UserIdLength: 5
MaxSavedLoc: 1000
MaxSavedPic: 10
RegistrationToken: ""
EOF

USER findmydeviceserver
ENTRYPOINT ["/fmd/server"]
# Expose the webinterface and the protocol ports
EXPOSE 8080/tcp
EXPOSE 8081/tcp
EXPOSE 8443/tcp

0 comments on commit 30376e3

Please sign in to comment.