Skip to content

Commit

Permalink
Ensure user has access to the SQL folder (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl authored Nov 15, 2024
1 parent a0b0435 commit 5bf2bc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ LABEL org.opencontainers.image.description="Manage Free School Projects - API"
COPY --from=build /app /app
COPY ./script/api-docker-entrypoint.sh /app/docker-entrypoint.sh
RUN ["chmod", "+x", "/app/docker-entrypoint.sh"]
RUN ["touch", "/app/SQL/DbMigrationScriptOutput.txt"]
RUN chown "$APP_UID" "/app/SQL" -R
USER $APP_UID

0 comments on commit 5bf2bc0

Please sign in to comment.