fmeshsync fix with synology,vm's and lxc

This commit is contained in:
root
2026-08-08 19:44:27 +02:00
parent 2786f12ab6
commit 5e32be7d0c
41 changed files with 1335 additions and 1674 deletions
+8 -3
View File
@@ -9,7 +9,8 @@ WORKDIR /opt/meshcentral
RUN apt-get update \
&& apt-get install -y --no-install-recommends nodejs npm ca-certificates postgresql-client \
&& rm -rf /var/lib/apt/lists/* \
&& npm install --omit=dev meshcentral
&& npm install --omit=dev meshcentral \
&& chown -R root:root /opt/meshcentral
WORKDIR /app
COPY requirements.txt .
@@ -21,10 +22,14 @@ RUN pip install --no-cache-dir -r requirements.txt \
&& rm /tmp/export_dependency_licenses.py
COPY app ./app
COPY VERSION APPINFO.json LICENSE.txt THIRD_PARTY_NOTICES.md ./
RUN mkdir -p /app/app/static/uploads /app/config /app/data/logs/sync /app/data/logs/diagnostics /data/backups
COPY VERSION LICENSE.txt THIRD_PARTY_NOTICES.md ./
COPY APPINFO.json /app/default-config/APPINFO.json
COPY docker-entrypoint.sh /usr/local/bin/assetmanager-entrypoint
RUN chmod +x /usr/local/bin/assetmanager-entrypoint \
&& mkdir -p /app/app/static/uploads /app/config /app/data/logs/sync /app/data/logs/diagnostics /data/backups
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD ["python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/software-callback/health', timeout=3).read()"]
ENTRYPOINT ["/usr/local/bin/assetmanager-entrypoint"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]