|
@@ -11,8 +11,9 @@ ADD docker-entrypoint.sh /tmp/docker-entrypoint.sh
|
|
RUN apt update && apt install -y git python3.8 python3-pip && \
|
|
RUN apt update && apt install -y git python3.8 python3-pip && \
|
|
cd /opt && git clone https://gitee.com/zhujf21st/authbase.git && cd authbase && \
|
|
cd /opt && git clone https://gitee.com/zhujf21st/authbase.git && cd authbase && \
|
|
pip3 install -r requirements.txt && \
|
|
pip3 install -r requirements.txt && \
|
|
- mv /tmp/docker-entrypoint.sh /opt/authbase/docker-entrypoint.sh && \
|
|
|
|
|
|
+ mv /tmp/docker-entrypoint.sh /opt/authbase/docker-entrypoint.sh && chmod +x /opt/authbase/docker-entrypoint.sh && \
|
|
apt install -yq mysql-server && \
|
|
apt install -yq mysql-server && \
|
|
|
|
+ service mysql start && cd /opt/authbase && mysql < db.sql && mysql < init-user.sql && \
|
|
apt remove -y git && apt clean
|
|
apt remove -y git && apt clean
|
|
|
|
|
|
|
|
|