From f505ff660535668ce1e0c8f4844da47d68275341 Mon Sep 17 00:00:00 2001 From: imterah Date: Sun, 5 Jan 2025 20:51:30 -0500 Subject: [PATCH] fix: Fixes SQLite not working with Docker. --- backend/Dockerfile | 2 +- backend/build.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index cd1c390..09859b5 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -2,7 +2,7 @@ FROM golang:latest AS build WORKDIR /build COPY . /build RUN bash build.sh -FROM busybox:stable AS run +FROM busybox:stable-glibc AS run WORKDIR /app COPY --from=build /build/backends.prod.json /app/backends.json COPY --from=build /build/api/api /app/hermes diff --git a/backend/build.sh b/backend/build.sh index 8753daf..ecb7537 100755 --- a/backend/build.sh +++ b/backend/build.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash pushd sshbackend -CGO_ENABLED=0 GOOS=linux go build . +GOOS=linux go build . strip sshbackend popd pushd dummybackend -CGO_ENABLED=0 GOOS=linux go build . +GOOS=linux go build . strip dummybackend popd @@ -15,6 +15,6 @@ strip externalbackendlauncher popd pushd api -CGO_ENABLED=0 GOOS=linux go build . +GOOS=linux go build . strip api popd