Update Dockerfile

This commit is contained in:
Alexandre
2023-06-06 10:31:14 +02:00
committed by GitHub
parent ec3dee83d4
commit 6b7cc5a19e

View File

@@ -27,14 +27,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
RUN \
# Change data folder
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh
# Choose elements to run
#sed -i 's|"$@"|"$(bashio::config "CMD_ARGUMENTS")"|g' /usr/local/bin/docker-entrypoint.sh && \
# Run with bashio
#sed -i 's|#!/bin/bash|#!/usr/bin/env bashio|g' /usr/local/bin/docker-entrypoint.sh
##################
# 3 Install apps #
##################
@@ -76,7 +68,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
RUN \
# Change data folder
# sed -i "1a /./entrypoint.sh" /usr/local/bin/docker-entrypoint.sh && \
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh && \
# Run scripts only once
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh