FROM alpine RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories RUN apk add git python3 py3-pip RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple RUN python3 -m pip install --upgrade pip && pip3 install --upgrade setuptools COPY . /web-gpt RUN pip3 install -r /web-gpt/requirements.txt RUN pip3 install waitress CMD cd /web-gpt && waitress-serve --listen 0.0.0.0:5000 project:app