make sure to copy the source to the container
Some checks failed
Build and publish the docker image / build (push) Failing after 46s
Some checks failed
Build and publish the docker image / build (push) Failing after 46s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
7cea387f02
commit
e9dfb890dc
@ -1,12 +1,13 @@
|
|||||||
FROM golang:1.23.4 AS build
|
FROM golang:1.23.4 AS build
|
||||||
|
|
||||||
|
WORKDIR /code
|
||||||
RUN go install github.com/a-h/templ/cmd/templ@latest
|
RUN go install github.com/a-h/templ/cmd/templ@latest
|
||||||
|
|
||||||
WORKDIR /code
|
|
||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
COPY go.sum ./
|
COPY go.sum ./
|
||||||
|
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
|
COPY . .
|
||||||
RUN make CGO_ENABLED=0
|
RUN make CGO_ENABLED=0
|
||||||
|
|
||||||
FROM alpine:3.21
|
FROM alpine:3.21
|
||||||
|
Loading…
x
Reference in New Issue
Block a user