2024-04-23 09:29:21 -07:00

23 lines
569 B
Docker

FROM ubuntu:jammy
MAINTAINER jwstar
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
python3.11 python3-pip python3.11-dev
# Using Aliyun pipy mirror
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -U pip
RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
COPY . /app
WORKDIR /app
RUN pip3 --no-cache-dir install --user -r /app/requirements.txt
RUN chmod +x start.sh && \
apt-get autoremove -y \
&& apt-get remove -y python3-pip
CMD ["./start.sh"]