aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-12 17:47:22 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-12 17:47:22 -0700
commitbc385afdb64137412e892c1c7dd9f3b8349edfef (patch)
tree7255562da4207a7b7322a57e14408eb6ac1e7746 /Dockerfile
parent6936ce913c5b2db003cff5624ca5f92c6f4c5ebc (diff)
Simplify Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 7d93a0e..65ddfed 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,12 +3,11 @@ FROM golang:1.18 AS builder
WORKDIR /app
COPY . .
-RUN CGO_ENABLED=0 go build -o /app/server/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server/server
+RUN CGO_ENABLED=0 go build -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server
FROM scratch
-WORKDIR /app/
-COPY --from=builder /app/server/server ./
+COPY --from=builder /app/server /app/server
COPY --from=builder /app/cmd/mobius-hotline-server/mobius/config /usr/local/var/mobius/config
EXPOSE 5500 5501