Compare commits

..

2 commits

Author SHA1 Message Date
Imbus
8ea6638d5a Migration fix 2024-02-11 17:14:32 +01:00
Imbus
62e77b5be7 Separate stage for downloading go deps 2024-02-11 17:13:27 +01:00
2 changed files with 4 additions and 1 deletions

View file

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

View file

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