mohitlahoti2002 commited on
Commit
dfdb529
·
1 Parent(s): 27a3724

update docker file for worker issue

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -8,14 +8,14 @@ RUN apt-get update && apt-get install -y \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
11
- ENV PATH="/root/.local/bin:$PATH"
12
 
13
  COPY pyproject.toml uv.lock ./
14
 
15
  RUN uv sync --frozen --no-cache
16
 
17
  # IMPORTANT: ensure .venv apps are used before system
18
- ENV PATH="/app/.venv/bin:$PATH"
19
 
20
  COPY . .
21
 
@@ -24,4 +24,4 @@ RUN chmod -R 777 /app/staticfiles_build /app/static /app/media /app/uploads
24
 
25
  EXPOSE 7860
26
 
27
- CMD ["sh", "-c", "python manage.py collectstatic --noinput && gunicorn djangoServer.wsgi:application --workers 2 --bind 0.0.0.0:7860"]
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
11
+ # ENV PATH="/root/.local/bin:$PATH"
12
 
13
  COPY pyproject.toml uv.lock ./
14
 
15
  RUN uv sync --frozen --no-cache
16
 
17
  # IMPORTANT: ensure .venv apps are used before system
18
+ # ENV PATH="/app/.venv/bin:$PATH"
19
 
20
  COPY . .
21
 
 
24
 
25
  EXPOSE 7860
26
 
27
+ CMD ["sh", "-c", "uv run python manage.py collectstatic --noinput && uv run gunicorn djangoServer.wsgi:application --workers 2 --bind 0.0.0.0:7860"]