diff --git a/Dockerfile b/Dockerfile index 877a734..10fc436 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,8 @@ COPY --from=fe /src/frontend/build ./frontend/build/ RUN ./scripts.sh build-backend # deploy -FROM debian:12 +FROM alpine:3.21.0 LABEL org.opencontainers.image.source="https://github.com/0x2E/fusion" -RUN apt-get update && apt-get install -y sqlite3 ca-certificates WORKDIR /fusion COPY --from=be /src/build/fusion ./ EXPOSE 8080 diff --git a/scripts.sh b/scripts.sh index e066775..135a7e2 100755 --- a/scripts.sh +++ b/scripts.sh @@ -28,7 +28,7 @@ build_frontend() { build_backend() { echo "building backend" - go build \ + CGO_ENABLED=0 go build \ -ldflags '-extldflags "-static"' \ -o ./build/fusion \ ./cmd/server/*