fix: data directory permissions for nextjs user (UID 1001)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -25,7 +25,9 @@ jobs:
|
|||||||
docker rm oma-memorial 2>/dev/null || true
|
docker rm oma-memorial 2>/dev/null || true
|
||||||
|
|
||||||
- name: Ensure data directory exists
|
- name: Ensure data directory exists
|
||||||
run: mkdir -p ${{ gitea.workspace }}/data
|
run: |
|
||||||
|
mkdir -p ${{ gitea.workspace }}/data/uploads/photos ${{ gitea.workspace }}/data/uploads/videos ${{ gitea.workspace }}/data/uploads/music
|
||||||
|
chown -R 1001:1001 ${{ gitea.workspace }}/data
|
||||||
|
|
||||||
- name: Run container in proxy network
|
- name: Run container in proxy network
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+2
-1
@@ -25,7 +25,8 @@ COPY --from=builder /app/.next/standalone ./
|
|||||||
COPY --from=builder /app/.next/static ./.next/static
|
COPY --from=builder /app/.next/static ./.next/static
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
RUN mkdir -p /app/data && chown nextjs:nodejs /app/data
|
RUN mkdir -p /app/data/uploads/photos /app/data/uploads/videos /app/data/uploads/music \
|
||||||
|
&& chown -R nextjs:nodejs /app/data
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user