first commit
This commit is contained in:
@ -1,16 +1,25 @@
|
|||||||
FROM python:3.10-slim
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
WORKDIR /app
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
python3.10 \
|
||||||
|
python3-pip \
|
||||||
gcc \
|
gcc \
|
||||||
default-libmysqlclient-dev \
|
libmysqlclient-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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 and install
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user