diff --git a/Dockerfile b/Dockerfile index d74ac77..7776a43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND="noninteractive" HOME="/" #Install dependencies RUN apt update -RUN apt install -y apache2 php7.0 php7.0-mysql php7.0-gd php7.0-mbstring mysql-server git uglifyjs +RUN apt install -y apache2 php7.0 php7.0-mysql php7.0-gd php7.0-mbstring mysql-server git uglifyjs zip #Add shorcuts RUN echo 'eval "mysqld_safe&"; sleep 10;' > /root/start_mysql.sh @@ -24,12 +24,12 @@ RUN git clone https://github.com/pierre42100/ComunicAPI /data/api #Import database RUN sh /root/start_mysql.sh; mysql comunic < /data/api/db_struct.sql; exit -#Create API client -RUN sh /root/start_mysql.sh; /data/api/bin/add_client client token; exit - #Update API config COPY overwriteAPIconfig.php /data/api/config/ +#Create API client +RUN sh /root/start_mysql.sh; /data/api/bin/add_client client token; exit + #Initialize user data directory COPY empty_user_data_dir.tar.gz /root/ RUN mkdir /data/user_data/ diff --git a/empty_user_data_dir.tar.gz b/empty_user_data_dir.tar.gz index 7895582..c955991 100644 Binary files a/empty_user_data_dir.tar.gz and b/empty_user_data_dir.tar.gz differ