From 56c355b14719aced8c76698eafccfd7794e96520 Mon Sep 17 00:00:00 2001 From: Artem Titoulenko Date: Sun, 16 Jan 2022 16:39:44 -0500 Subject: [PATCH] stop using sqlite db file --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f7f38f..9f2aa54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ COPY go.mod go.sum /app/ RUN go mod download COPY . /app RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /app/aim -RUN chmod +x /app/aim && chmod +rw /app/aim.db +RUN chmod +x /app/aim FROM scratch AS prod @@ -38,7 +38,6 @@ COPY --from=build /etc/passwd /etc/passwd COPY --from=build /etc/group /etc/group COPY --from=build /app/models /app/models COPY --from=build /app/aim /app/aim -COPY --from=build /app/aim.db /app/aim.db # Use an unprivileged user. USER appuser:appuser