mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update Dockerfile
This commit is contained in:
@@ -70,9 +70,10 @@ RUN \
|
||||
# Change data folder
|
||||
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
|
||||
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh && \
|
||||
# Allow entrypoint
|
||||
chmod 777 /entrypoint.sh
|
||||
|
||||
RUN chmod 777 /entrypoint.sh
|
||||
WORKDIR /data
|
||||
ENTRYPOINT [ "/usr/bin/env" ]
|
||||
CMD [ "/entrypoint.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user