init repo

This commit is contained in:
VaalaCat
2024-08-28 00:02:28 +08:00
committed by vaalacat
commit 13148b95e3
97 changed files with 10214 additions and 0 deletions

12
Dockerfile.standalone Normal file
View File

@@ -0,0 +1,12 @@
FROM golang:1.22 AS builder
WORKDIR $GOPATH/src/toyboom-server
COPY . .
RUN mkdir /app && \
CGO_ENABLED=1 GOPROXY=https://goproxy.cn,direct go build -o toyboom-server main.go && \
cp toyboom-server /app/
FROM golang:1.22
COPY --from=builder /app/toyboom-server /app/toyboom-server
EXPOSE 8080
ENTRYPOINT [ "/app/toyboom-server" ]