Compare commits

...

4 Commits

+7 -10
View File
@@ -24,10 +24,6 @@ RUN mkdir -pv "$FDROID"
WORKDIR "$FDROID"
RUN fdroid init
# Start Command #
CMD nginx -g "daemon off;"
# This is where the image would get published. #
# Configure F-Droid Repo #
@@ -44,7 +40,7 @@ ENV REPO_ICON="$REPO_ICON"
RUN sed -i "$ a repo_url: $REPO_DOMAIN/fdroid/repo" "$FDROID/config.yml"
RUN sed -i "$ a repo_name: $REPO_NAME" "$FDROID/config.yml"
#RUN fdroid update
RUN fdroid update
# Advanced Variables #
@@ -116,7 +112,7 @@ RUN bash -c 'if [[ -n "$FILE19" ]]; then wget -P "$REPO" "$FILE19"; fi'
RUN sync
# Move any downloaded metadata files to the correct folder.
RUN cp -v "$REPO"/*.yml "$REPO"/../metadata || \
RUN mv -v "$REPO"/*.yml "$REPO"/../metadata || \
echo "WARNING! No YML file(s) to copy." && sleep 10
# Move any downloaded icons to the proper folder.
@@ -138,7 +134,8 @@ RUN cp -rv "$FDROID" "$WEBROOT/"
# having the URL be fdroid/repo/? How do others handle this?
RUN cp -rv "$REPO"/* "$WEBROOT/"
CMD service nginx start && \
echo "\n*** F-Droid Repository has been started successfully! ***\n" && \
tail -F /var/log/nginx/access.log & \
tail -F /var/log/nginx/error.log
# Start Command #
CMD tail -F /var/log/nginx/access.log & \
tail -F /var/log/nginx/error.log & \
nginx -g "daemon off;"