salw/salw_admin/Dockerfile

20 lines
391 B
Docker
Raw Permalink Normal View History

2024-11-28 15:06:12 +00:00
# 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"]