2023-11-19 12:11:17 +08:00

23 lines
560 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 nodejs
# Using douban pipy mirror
RUN pip3 install -i https://pypi.douban.com/simple/ -U pip
RUN pip3 config set global.index-url https://pypi.douban.com/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"]