🎉 Initial Commit

This commit is contained in:
2024-05-17 15:59:51 +08:00
commit 8b71ec2e3f
42 changed files with 2735 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
# Building Backend
FROM golang:alpine as paperclip-server
RUN apk add nodejs npm
WORKDIR /source
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs -o /dist ./pkg/cmd/main.go
# Runtime
FROM golang:alpine
COPY --from=paperclip-server /dist /paperclip/server
EXPOSE 8445
CMD ["/paperclip/server"]