mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-21 23:33:34 +00:00
ci(deploy): fix permissions for data
This commit is contained in:
parent
2cb4042a20
commit
dc3251d00f
1 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,9 @@ COPY . ./
|
|||
# Build
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -o /bin/zdravko cmd/zdravko/main.go
|
||||
|
||||
# Prepare the data directory
|
||||
RUN mkdir -p /data
|
||||
|
||||
###
|
||||
# Final production
|
||||
FROM gcr.io/distroless/base-debian12:nonroot as production
|
||||
|
@ -31,7 +34,7 @@ EXPOSE 7233
|
|||
|
||||
# Volume to persist sqlite databases
|
||||
VOLUME /data
|
||||
RUN mkdir -p /data && chown -R nonroot:nonroot /data
|
||||
COPY --from=builder --chown=nonroot:nonroot /data /data
|
||||
|
||||
ENV DATABASE_PATH=/data/zdravko.db
|
||||
ENV TEMPORAL_DATABASE_PATH=/data/temporal.db
|
||||
|
|
Loading…
Reference in a new issue