This commit is contained in:
parent
87820c727a
commit
ea10ccc31a
@ -1,9 +1,9 @@
|
|||||||
FROM docker.io/golang:1.23 as app
|
FROM docker.io/golang:1.23 as build
|
||||||
COPY src/ .
|
COPY src/ .
|
||||||
RUN printf 'module yw5n\ngo 1.23' > go.mod && CGO_ENABLED=0 go build -o /app
|
RUN printf 'module yw5n\ngo 1.23' > go.mod && CGO_ENABLED=0 go build -o /app
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=app /app /app
|
COPY --from=build /app /app
|
||||||
COPY static/ /static/
|
COPY static/ /static/
|
||||||
COPY html/ /html/
|
COPY html/ /html/
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
Loading…
Reference in New Issue
Block a user