Containerizing things.
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
42bee83cf5
commit
e83dafc8bf
|
@ -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
|
# 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
|
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
|
# Create the logs directory, set it as a volume, and set the appropriate permissions
|
||||||
RUN mkdir /diffs && chown oculus:oculus /diffs
|
RUN mkdir /logs && chown oculus:oculus /logs
|
||||||
|
VOLUME /logs
|
||||||
|
|
||||||
# Set the working directory and change its ownership
|
# Set the working directory to /logs
|
||||||
WORKDIR /home/oculus
|
WORKDIR /logs
|
||||||
RUN chown oculus:oculus /home/oculus
|
|
||||||
|
# Create the diffs directory within /logs
|
||||||
|
RUN mkdir /logs/diffs && chown oculus:oculus /logs/diffs
|
||||||
|
|
||||||
# Switch to the unprivileged user
|
# Switch to the unprivileged user
|
||||||
USER oculus
|
USER oculus
|
||||||
|
|
Loading…
Reference in New Issue