Open xiexinmofo opened 1 year ago
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \ python3.8 \ python3-pip
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
WORKDIR /app
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "python3", "app.py" ]
Can provide an image based on Python 3.8+ubuntu ?