GDB-UI/gdbui_server/DockerFile.dev
2024-06-22 14:49:21 +05:30

19 lines
402 B
Text

FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy only the requirements file first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install gdb
RUN apt-get update && apt-get install -y gdb
# Copy the rest of the application code
COPY . .
# Command to run the backend server
CMD ["python", "main.py"]