feat: go backend
This commit is contained in:
parent
1e228ed338
commit
8aa314bdb3
4 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue