diff --git a/docker/reporter/Dockerfile b/docker/reporter/Dockerfile index 1737408..95ea6c2 100644 --- a/docker/reporter/Dockerfile +++ b/docker/reporter/Dockerfile @@ -22,12 +22,15 @@ COPY --from=builder /usr/local/bin/oculus_filter /usr/local/bin/oculus_filter # Change ownership of the binaries to the unprivileged user RUN chown oculus:oculus /usr/local/bin/go-glitch /usr/local/bin/oculus_main /usr/local/bin/oculus_filter -# Create the diffs directory and set the appropriate permissions -RUN mkdir /diffs && chown oculus:oculus /diffs +# Create the logs directory, set it as a volume, and set the appropriate permissions +RUN mkdir /logs && chown oculus:oculus /logs +VOLUME /logs -# Set the working directory and change its ownership -WORKDIR /home/oculus -RUN chown oculus:oculus /home/oculus +# Set the working directory to /logs +WORKDIR /logs + +# Create the diffs directory within /logs +RUN mkdir /logs/diffs && chown oculus:oculus /logs/diffs # Switch to the unprivileged user USER oculus