dockerfile

This commit is contained in:
lehel 2025-10-07 15:29:13 +02:00
parent 5651b89a6b
commit d4d0dc01ea
No known key found for this signature in database
GPG Key ID: 9C4F9D6111EE5CFA
1 changed files with 5 additions and 5 deletions

View File

@ -20,9 +20,7 @@ RUN go mod download
COPY . .
# Build with Go build cache (requires BuildKit)
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
${BUILD_COMMAND}
RUN ${BUILD_COMMAND}
# ---- Runner Stage ----
FROM debian:bookworm-slim AS runner
@ -44,6 +42,8 @@ COPY --from=builder /build/${BINARY_NAME} ./app
COPY config.yaml .
COPY db.yaml .
COPY ui.html .
COPY ui_dbedit.html .
COPY ui_admin_chats.html .
EXPOSE 8080
# Run binary directly
ENTRYPOINT ["./app"]