mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-13 11:01:28 +02:00
Update Dockerfile
This commit is contained in:
@@ -70,9 +70,10 @@ RUN \
|
|||||||
# Change data folder
|
# Change data folder
|
||||||
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh && \
|
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh && \
|
||||||
# Run scripts only once
|
# 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
|
WORKDIR /data
|
||||||
ENTRYPOINT [ "/usr/bin/env" ]
|
ENTRYPOINT [ "/usr/bin/env" ]
|
||||||
CMD [ "/entrypoint.sh" ]
|
CMD [ "/entrypoint.sh" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user