mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-07-11 16:12:10 +02:00
fix(docker): revert container user to root to fix permission issue with existing volume
This commit is contained in:
parent
4d6aeedccd
commit
237fce9504
1 changed files with 3 additions and 6 deletions
|
|
@ -19,15 +19,12 @@ FROM alpine:3.20
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
|
|
||||||
RUN addgroup -S syntrex && adduser -S syntrex -G syntrex
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /gomcp /app/gomcp
|
COPY --from=builder /gomcp /app/gomcp
|
||||||
|
|
||||||
# Create data directory for SQLite + RLM
|
# RUN addgroup -S syntrex && adduser -S syntrex -G syntrex
|
||||||
RUN mkdir -p /data/.rlm && chown -R syntrex:syntrex /data
|
# RUN mkdir -p /data/.rlm && chown -R syntrex:syntrex /data
|
||||||
|
# USER syntrex
|
||||||
USER syntrex
|
|
||||||
|
|
||||||
EXPOSE 9750
|
EXPOSE 9750
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue