diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-12 17:47:22 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-12 17:47:22 -0700 |
| commit | bc385afdb64137412e892c1c7dd9f3b8349edfef (patch) | |
| tree | 7255562da4207a7b7322a57e14408eb6ac1e7746 /Dockerfile | |
| parent | 6936ce913c5b2db003cff5624ca5f92c6f4c5ebc (diff) | |
Simplify Dockerfile
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |