Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

fixed docker permission issue with logs directory (#1106)

TheTechromancer9d7f45786219
diff --git a/Dockerfile b/Dockerfile
index 0dcda94c..476b85de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -60,6 +60,12 @@ RUN apk --update --no-cache add python3 musl openssl libxslt tinyxml libxml2 jpe
&& mkdir $SPIDERFOOT_DATA \
&& chown spiderfoot:spiderfoot $SPIDERFOOT_DATA
+COPY . .
+
+# fix permissions on logs directory
+ENV SPIDERFOOT_LOGS /home/spiderfoot/log
+RUN chown spiderfoot:spiderfoot $SPIDERFOOT_LOGS
+
COPY --from=build /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
@@ -69,6 +75,4 @@ EXPOSE 5001
# Run the application.
ENTRYPOINT ["/opt/venv/bin/python"]
-CMD ["sf.py", "-l", "0.0.0.0:5001"]
-
-COPY . .
+CMD ["sf.py", "-l", "0.0.0.0:5001"]
\ No newline at end of file