aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/Dockerfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-27 19:02:32 +0900
committernsfisis <nsfisis@gmail.com>2024-07-27 19:02:32 +0900
commit7cbf34204233df7c7e9e4b24998e25dbd8d2a423 (patch)
tree848da44374c48edec603fb014c59ad0fbb9307e6 /backend/Dockerfile
parent18308a22879dc9143a03bcbe53cf0c5e8e49ee1f (diff)
downloadiosdc-japan-2025-albatross-7cbf34204233df7c7e9e4b24998e25dbd8d2a423.tar.gz
iosdc-japan-2025-albatross-7cbf34204233df7c7e9e4b24998e25dbd8d2a423.tar.zst
iosdc-japan-2025-albatross-7cbf34204233df7c7e9e4b24998e25dbd8d2a423.zip
organize dockerfiles and compose.yaml
Diffstat (limited to 'backend/Dockerfile')
-rw-r--r--backend/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/backend/Dockerfile b/backend/Dockerfile
new file mode 100644
index 0000000..1d1523d
--- /dev/null
+++ b/backend/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"]