feat: go backend

This commit is contained in:
ange 2024-09-28 23:00:18 +07:00
parent 1e228ed338
commit 8aa314bdb3
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
4 changed files with 8 additions and 8 deletions

View file

@ -1,9 +1,9 @@
FROM docker.io/golang:1.23 as build
FROM docker.io/golang:1.23 as app
COPY src/ .
RUN printf 'module yw5n\ngo 1.23' > go.mod && CGO_ENABLED=0 go build -o /app
FROM scratch
COPY --from=build /app /app
COPY --from=app /app /app
COPY static/ /static/
COPY html/ /html/
EXPOSE 3000