Skip to content

Commit

Permalink
pre create /db directory to prevent permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyfleck committed May 16, 2023
1 parent be57b79 commit c4ac533
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ RUN addgroup -S appgroup && adduser -S appuser -G appgroup -s /bin/sh
# Copy Python packages and the virtual environment from the builder stage
COPY --from=builder --chown=appuser:appgroup /app /app

# Create /db directory to prevent permission issues
RUN mkdir /db && \
chown appuser:appgroup /db

# Set the working directory to /app
WORKDIR /app

Expand Down

0 comments on commit c4ac533

Please sign in to comment.