feat: add goreleaser

This commit is contained in:
Steven
2024-04-27 00:22:27 +08:00
parent 647602beac
commit 5f26c52b49
5 changed files with 91 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ FROM golang:1.22-alpine AS backend
WORKDIR /backend-build
COPY . .
COPY --from=frontend /frontend-build/web/dist /backend-build/server/route/frontend/dist
RUN CGO_ENABLED=0 go build -o memos ./bin/memos/main.go
@@ -25,7 +26,6 @@ WORKDIR /usr/local/memos
RUN apk add --no-cache tzdata
ENV TZ="UTC"
COPY --from=frontend /frontend-build/web/dist /usr/local/memos/dist
COPY --from=backend /backend-build/memos /usr/local/memos/
EXPOSE 5230