From e9dfb890dcfa439d627b9030142d6fe1fb94cb8f Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 19 Jan 2025 12:32:02 +0300 Subject: [PATCH] make sure to copy the source to the container Signed-off-by: ngn --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c52d2c..9e72526 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ FROM golang:1.23.4 AS build +WORKDIR /code RUN go install github.com/a-h/templ/cmd/templ@latest -WORKDIR /code COPY go.mod ./ COPY go.sum ./ - RUN go mod download + +COPY . . RUN make CGO_ENABLED=0 FROM alpine:3.21