From 62e77b5be7d26829238dac8123219061ffe89222 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 11 Feb 2024 17:13:27 +0100 Subject: [PATCH 1/2] Separate stage for downloading go deps --- container/Containerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/container/Containerfile b/container/Containerfile index d399b33..c064cb8 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -17,6 +17,9 @@ WORKDIR /build # COPY --from=client /build/dist /runner/public COPY --from=client /build/dist /build/static +# Get the dependencies +RUN go mod download + # RUN go build -o server RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o server From 8ea6638d5a1baf945c29412d269e009f03e3af58 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 11 Feb 2024 17:14:32 +0100 Subject: [PATCH 2/2] Migration fix --- server/migrations/0010.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/migrations/0010.sql b/server/migrations/0010.sql index 63502f8..4943bcc 100644 --- a/server/migrations/0010.sql +++ b/server/migrations/0010.sql @@ -1,7 +1,7 @@ PRAGMA foreign_keys = ON; CREATE TABLE IF NOT EXISTS users ( - id SERIAL PRIMARY KEY, + id INTEGER PRIMARY KEY, username VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL ); \ No newline at end of file