From e83dafc8bfcba702c9b089deccb8654aac3e3cf9 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 12 Jun 2024 16:22:41 -0400 Subject: [PATCH] Containerizing things. --- docker/reporter/Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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