[feature] migrate to monorepo
Some checks failed
Build Backend / Build Docker Image (push) Successful in 3m33s
Test Backend / test (push) Failing after 31s

This commit is contained in:
CDN 2025-02-21 00:49:20 +08:00
commit 05ddc1f783
Signed by: CDN
GPG key ID: 0C656827F9F80080
267 changed files with 75165 additions and 0 deletions

21
backend/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM golang:alpine AS builder
WORKDIR /app
RUN apk add --no-cache gcc musl-dev libwebp-dev
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o tss-rocks-be ./cmd/server
FROM alpine:latest
RUN apk add --no-cache libwebp
RUN adduser -u 1000 -D tss-rocks
USER tss-rocks
WORKDIR /app
COPY --from=builder /app/tss-rocks-be .
EXPOSE 8080
ENV GIN_MODE=release
CMD ["./tss-rocks-be"]