20 lines
391 B
Docker
20 lines
391 B
Docker
# Back-End
|
|
|
|
# Use the official Python image
|
|
FROM python:3.12
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install Python dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the rest of the app files
|
|
COPY . .
|
|
|
|
# Expose the port for the Django app
|
|
EXPOSE 8000
|
|
|
|
# Run the Django development server
|
|
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] |