diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..02b47823 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Use an official Python runtime as a parent image +FROM python:3.14-alpine + +# Set environment variables for Python +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + +# Set the working directory +WORKDIR /app + +# Install dependencies +COPY requirements.txt /app/ +RUN pip install --upgrade pip && pip install -r requirements.txt + +# Copy project code +COPY . /app/ + +# Expose port +EXPOSE 8000 + +# Run the development server +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 286d3f5c..e21ae1a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ Django==5.0.1 gunicorn==21.2.0 h11==0.14.0 packaging==23.2 -psycopg2-binary==2.9.9 +psycopg==3.3.3 sqlparse==0.4.4 typing_extensions==4.9.0 uvicorn==0.27.0.post1