fmeshsync fix with synology,vm's and lxc
This commit is contained in:
+8
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user