fix(docker): resolve SQLite error 14 bind-mount volume permission issue
This commit is contained in:
1 parent
44b3ccf545
commit
93dd6beff6
2 files changed
+3
-5
No files matched your search
+2
-3
@@ -30,8 +30,8 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-s -w
|
||||
# ==============================================================================
|
||||
FROM alpine:3.21
|
||||
RUN apk add --no-cache ca-certificates tzdata && \
|
||||
mkdir -p /data && \
|
||||
chown -R 1000:1000 /data
|
||||
mkdir -p /data /tmp && \
|
||||
chmod 1777 /tmp
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=backend-builder /app/mindsift /app/mindsift
|
||||
@@ -41,5 +41,4 @@ ENV DATA_DIR=/data
|
||||
VOLUME ["/data"]
|
||||
|
||||
EXPOSE 8080
|
||||
USER 1000:1000
|
||||
ENTRYPOINT ["/app/mindsift"]
|
||||
Reference in new issue
Block a user