first commit

This commit is contained in:
2025-10-14 19:46:11 +05:30
parent 3b98edf310
commit 413f402d34

View File

@ -1,16 +1,25 @@
FROM python:3.10-slim
FROM ubuntu:22.04
WORKDIR /app
# Install dependencies
# Prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install Python 3.10 and dependencies
RUN apt-get update && apt-get install -y \
python3.10 \
python3-pip \
gcc \
default-libmysqlclient-dev \
libmysqlclient-dev \
pkg-config \
libssl-dev \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*
# Create symlinks
RUN ln -sf /usr/bin/python3.10 /usr/bin/python && \
ln -sf /usr/bin/pip3 /usr/bin/pip
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt