|
@@ -0,0 +1,21 @@
|
|
|
|
+FROM ubuntu:20.04
|
|
|
|
+
|
|
|
|
+# solve please select the geographic area in which you live problems
|
|
|
|
+ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
+ENV TZ=Asia/Shanghai
|
|
|
|
+
|
|
|
|
+ADD sources.list /etc/apt/sources.list
|
|
|
|
+ADD pip.conf /root/.pip/pip.conf
|
|
|
|
+ADD docker-entrypoint.sh /tmp/docker-entrypoint.sh
|
|
|
|
+
|
|
|
|
+RUN apt update && apt install -y git python3.8 python3-pip && \
|
|
|
|
+ cd /opt && git clone https://gitee.com/zhujf21st/authbase.git && cd authbase && \
|
|
|
|
+ pip3 install -r requirements.txt && \
|
|
|
|
+ mv /tmp/docker-entrypoint.sh /opt/authbase/docker-entrypoint.sh && \
|
|
|
|
+ apt install -yq mysql-server && \
|
|
|
|
+ apt remove -y git && apt clean
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+WORKDIR /opt/authbase
|
|
|
|
+ENTRYPOINT ["sh", "docker-entrypoint.sh"]
|