Skip to content

Commit

Permalink
Move artifacts directory creation to previous stage
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Nov 27, 2024
1 parent 3f9521b commit ab2eefb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,15 @@ ENV PATH=$GRADLE_HOME/bin/$PATH
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Create a non-root user and set up permissions
RUN useradd -ms /bin/bash indexer && mkdir -p /home/indexer && chown -R indexer:indexer /home/indexer
RUN useradd -ms /bin/bash indexer && mkdir -p /home/indexer/artifacts && chown -R indexer:indexer /home/indexer

# Copy your build scripts into the container as root
ADD entrypoint.sh /home/indexer/

# Change file permissions as root
RUN chmod +x /home/indexer/entrypoint.sh

# Create volume dir
RUN mkdir -p /home/indexer/artifacts
# Create volume dir=
VOLUME /home/indexer/artifacts

# Switch to non-root user
Expand Down

0 comments on commit ab2eefb

Please sign in to comment.