mirror of
https://github.com/Lyxminxx/jast.git
synced 2026-10-11 12:51:51 +02:00
Ready for production deployment
This commit is contained in:
commit
e06c56e76e
23 files changed
+664
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
FROM python:3.14-slim
|
||||
|
||||
# Install uv directly into the container
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy your project files
|
||||
COPY . .
|
||||
|
||||
# Tell uv to sync/install all dependencies into the system environment
|
||||
RUN uv sync --system --no-dev
|
||||
|
||||
# Collect static files for the admin panel
|
||||
RUN python manage.py collectstatic --noinput
|
||||
|
||||
# Create the data directory for SQLite
|
||||
RUN mkdir -p data
|
||||
|
||||
# Expose the port
|
||||
EXPOSE 8000
|
||||
|
||||
# Start Gunicorn
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "core.wsgi:application"]
|
||||
Reference in new issue
Block a user