Initial commit

This commit is contained in:
rl544
2026-09-13 19:19:37 +09:00
commit 574783ab15
24 changed files with 942 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY . .
# Initialize and download dependencies
RUN go mod tidy
# Build the Go app
RUN CGO_ENABLED=0 GOOS=linux go build -o backend main.go
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/backend .
EXPOSE 8080
CMD ["./backend"]