fix this, and this

This commit is contained in:
CrafterPika 2024-10-26 15:06:17 +02:00
parent f53451aa5b
commit 85332e0dce
Signed by: crafterpika
GPG key ID: B4E0BA4B52B201DC
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,6 @@ FROM python:3.13
WORKDIR /syscheck_receiver WORKDIR /syscheck_receiver
COPY . /syscheck_receiver COPY . /syscheck_receiver
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir -p /data/reports RUN mkdir -p /data
EXPOSE 6969/tcp EXPOSE 6969/tcp
ENTRYPOINT ["python", "app.py"] ENTRYPOINT ["python", "app.py"]

2
app.py
View file

@ -175,6 +175,8 @@ if __name__ == "__main__":
if config["docker"]: if config["docker"]:
print("Docker is TRUE") print("Docker is TRUE")
if not os.path.isdir(report_dir):
os.mkdir(report_dir)
# start server # start server
if args.debug == "1": if args.debug == "1":