v1.5.1 - create writable /app/data for settings volume
This commit is contained in:
+6
-1
@@ -17,7 +17,12 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|||||||
CMD wget -qO- http://localhost:3000/api/config || exit 1
|
CMD wget -qO- http://localhost:3000/api/config || exit 1
|
||||||
|
|
||||||
RUN addgroup -g 1001 -S appgroup && \
|
RUN addgroup -g 1001 -S appgroup && \
|
||||||
adduser -S appuser -u 1001 -G appgroup
|
adduser -S appuser -u 1001 -G appgroup && \
|
||||||
|
mkdir -p /app/data && \
|
||||||
|
chown -R appuser:appgroup /app/data
|
||||||
|
|
||||||
|
VOLUME ["/app/data"]
|
||||||
|
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user