[feature] migrate to monorepo
This commit is contained in:
commit
05ddc1f783
267 changed files with 75165 additions and 0 deletions
21
backend/Dockerfile
Normal file
21
backend/Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue