aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/Dockerfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 19:19:04 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 19:19:04 +0900
commit0b09103e894a5f7c6865e5bdd20992457cec3c9f (patch)
treeec0f73ab1c1f1fb884e357209f2976edf535d510 /worker/Dockerfile
parent0ecb9872b0e0e421d498f0afb4a8f603cba50b39 (diff)
downloadiosdc-japan-2024-albatross-0b09103e894a5f7c6865e5bdd20992457cec3c9f.tar.gz
iosdc-japan-2024-albatross-0b09103e894a5f7c6865e5bdd20992457cec3c9f.tar.zst
iosdc-japan-2024-albatross-0b09103e894a5f7c6865e5bdd20992457cec3c9f.zip
feat: add worker server
Diffstat (limited to 'worker/Dockerfile')
-rw-r--r--worker/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/worker/Dockerfile b/worker/Dockerfile
new file mode 100644
index 0000000..1d1523d
--- /dev/null
+++ b/worker/Dockerfile
@@ -0,0 +1,13 @@
+FROM golang:1.22.3 AS builder
+
+WORKDIR /build
+COPY . /build
+RUN go build -o /build/server .
+
+################################################################################
+FROM golang:1.22.3
+
+WORKDIR /app
+COPY --from=builder /build/server /app/server
+
+CMD ["/app/server"]