26 行
817 B
Plaintext
26 行
817 B
Plaintext
FROM ubuntu:20.04
|
|
# 环境变量
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV LANG C.UTF-8
|
|
RUN sed -i 's@http://archive.ubuntu.com/ubuntu/@http://mirrors.aliyun.com/ubuntu/@g' /etc/apt/sources.list
|
|
|
|
RUN apt-get update -qq
|
|
ADD . /navi
|
|
WORKDIR /navi
|
|
#安装python
|
|
RUN apt-get clean && \
|
|
apt-get update && \
|
|
apt-get install -y libmysqlclient-dev tzdata \
|
|
python3 python3-dev python3-pip libpcre3 libpcre3-dev uwsgi-plugin-python3\
|
|
&& apt-get clean \
|
|
&& apt-get autoclean \
|
|
&& ln -sf /usr/bin/pip3 /usr/bin/pip && ln -sf /usr/bin/python3 /usr/bin/python
|
|
|
|
RUN apt-get update -q \
|
|
&& apt-get install -y wget curl vim
|
|
|
|
# 安装依赖
|
|
RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --verbose basicsr
|
|
|
|
EXPOSE 18100
|
|
CMD ["python", "/navi/run.py"] |