From 2f052710ba849d7bed37b0535bb2706090dc4a57 Mon Sep 17 00:00:00 2001 From: 1e99 Date: Sun, 1 Dec 2024 20:27:20 +0100 Subject: [PATCH] add dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2e21fc8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:1.23.2 AS builder +WORKDIR /src +COPY . ./ +RUN cd server && go build -o /bin/resourcepacker . + +FROM debian:latest AS runner +COPY --from=builder /bin/resourcepacker /bin/resourcepacker +CMD ["/bin/resourcepacker"]