update docker file to build full app

This commit is contained in:
2025-11-17 06:20:06 +07:00
parent 0dd2426e7a
commit 823c8edbff

View File

@@ -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