From 823c8edbffa8b42b8e9eeeda81280b940cd43af4 Mon Sep 17 00:00:00 2001 From: DilankaHer Date: Mon, 17 Nov 2025 06:20:06 +0700 Subject: [PATCH] update docker file to build full app --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e95f3b4..4c417a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN go mod download COPY . . # Build with CGO enabled for SQLite -RUN CGO_ENABLED=1 GOOS=linux go build -o server main.go +RUN CGO_ENABLED=1 GOOS=linux go build -o server # ------------------------------------------------------ # 2. Runtime Stage @@ -30,10 +30,6 @@ WORKDIR /app # Copy binary and required files COPY --from=builder /app/server . -COPY --from=builder /app/css ./css -COPY --from=builder /app/views ./views -COPY --from=builder /app/my_website.db ./ -COPY --from=builder /app/data ./data EXPOSE 8080