fixed dockerfile

This commit is contained in:
Lyxminxx committed 2026-09-20 00:44:48 +02:00
1 parent e06c56e76e
commit a93ee544e6
1 file changed
+6 -6
+6 -6
View File
@@ -9,11 +9,11 @@ WORKDIR /app
# Copy your project files # Copy your project files
COPY . . COPY . .
# Tell uv to sync/install all dependencies into the system environment # Tell uv to sync dependencies (this creates a clean .venv inside the container)
RUN uv sync --system --no-dev RUN uv sync --no-dev
# Collect static files for the admin panel # Collect static files for the admin panel using uv run
RUN python manage.py collectstatic --noinput RUN uv run python manage.py collectstatic --noinput
# Create the data directory for SQLite # Create the data directory for SQLite
RUN mkdir -p data RUN mkdir -p data
@@ -21,5 +21,5 @@ RUN mkdir -p data
# Expose the port # Expose the port
EXPOSE 8000 EXPOSE 8000
# Start Gunicorn # Start Gunicorn using uv run
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "core.wsgi:application"] CMD ["uv", "run", "gunicorn", "--bind", "0.0.0.0:8000", "core.wsgi:application"]