fix:volumes
All checks were successful
Build and Deploy / deploy (push) Successful in 12s

This commit is contained in:
2025-07-21 03:45:35 +05:00
parent cddd20e203
commit 25b0ec0809
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "3001:3000" - "3001:3000"
user: "${UID:-1000}:${GID:-1000}"
volumes: volumes:
- ./app/static:/app/static:rw - ./app/static:/app/static:rw
env_file: env_file:

View File

@ -11,4 +11,7 @@ COPY . .
EXPOSE 3000 EXPOSE 3000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"] CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"]
RUN mkdir -p /app/static/skins /app/static/capes /app/static/capes_store && \
chown -R 1000:1000 /app/static
USER 1000:1000