Update Dockerfile
Browse files- Dockerfile +6 -13
Dockerfile
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
FROM analogic/poste.io:latest
|
|
|
|
| 2 |
# Konfiguracja dla Hugging Face Spaces
|
| 3 |
ENV HOME=/home/user \
|
| 4 |
PATH=/home/user/.local/bin:$PATH
|
|
@@ -29,17 +30,9 @@ EXPOSE 7860 25 587 143 993
|
|
| 29 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=90s --retries=3 \
|
| 30 |
CMD wget --no-verbose --tries=1 --spider http://localhost:7860/ || exit 1
|
| 31 |
|
| 32 |
-
#
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
rm -rf /run/*.pid 2>/dev/null || true\n\
|
| 38 |
-
rm -rf /var/run/*.pid 2>/dev/null || true\n\
|
| 39 |
-
rm -rf /run/login/* 2>/dev/null || true\n\
|
| 40 |
-
echo "[Cleanup] Done. Starting Poste.io..."\n\
|
| 41 |
-
exec /init' > /startup-wrapper.sh && \
|
| 42 |
-
chmod +x /startup-wrapper.sh
|
| 43 |
-
|
| 44 |
-
# Użycie wrapper script zamiast bezpośrednio /init
|
| 45 |
CMD ["/startup-wrapper.sh"]
|
|
|
|
| 1 |
FROM analogic/poste.io:latest
|
| 2 |
+
|
| 3 |
# Konfiguracja dla Hugging Face Spaces
|
| 4 |
ENV HOME=/home/user \
|
| 5 |
PATH=/home/user/.local/bin:$PATH
|
|
|
|
| 30 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=90s --retries=3 \
|
| 31 |
CMD wget --no-verbose --tries=1 --spider http://localhost:7860/ || exit 1
|
| 32 |
|
| 33 |
+
# Kopiowanie startup wrapper script
|
| 34 |
+
COPY startup-wrapper.sh /startup-wrapper.sh
|
| 35 |
+
RUN chmod +x /startup-wrapper.sh
|
| 36 |
+
|
| 37 |
+
# Użycie wrapper script - czyści lock files przed startem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
CMD ["/startup-wrapper.sh"]
|