Update Dockerfile to copy server binary from /app directory

This commit is contained in:
Andras Bacsai
2024-04-26 13:49:22 +02:00
parent 5002a66bef
commit 803c064666

View File

@@ -4,6 +4,6 @@ COPY . .
RUN go build -o /server . RUN go build -o /server .
FROM scratch FROM scratch
COPY --from=build /server /server COPY --from=build /app/server /server
EXPOSE 3000 EXPOSE 3000
CMD ["/server"] CMD ["/server"]