22 lines
527 B
Docker
22 lines
527 B
Docker
FROM python:3.14-slim
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
# System upgrades and tmux installation
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
apt-get install -y tmux && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Upgrade pip and install requirements
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir --upgrade pip
|
|
RUN pip install --no-cache-dir -r requirements.txt debugpy
|
|
|
|
# Copy your tmux config to the container's home directory
|
|
COPY .tmux.conf /root/.tmux.conf
|
|
|
|
COPY . .
|
|
|
|
# Default production command
|
|
CMD [ "python", "./main.py" ]
|