Create writable /app/data in image for push subscription persistence
This commit is contained in:
1 parent
722e278f8e
commit
2d3f4f5960
1 file changed
+3
@@ -7,6 +7,9 @@ RUN npm ci --omit=dev
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Ensure runtime data directory exists and is writable when running as non-root.
|
||||||
|
RUN mkdir -p /app/data && chown -R node:node /app
|
||||||
|
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user