File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ attach: ## follow the logs of the service
3939 docker compose -f local.yml logs -f
4040
4141docker-test : # # run tests in Docker
42- docker compose -f local.yml run --remove-orphans app py.test -vv --cache-clear
42+ docker compose -f local.yml run --remove-orphans app py.test -vv -p no:cacheprovider
4343
4444stop : # # stop all services defined in Docker Compose
4545 docker compose -f local.yml stop
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ RUN sed -i 's/\r$//g' /start && chmod +x /start
2929# Copy the entire application code to the app directory
3030COPY . ${APP_HOME}
3131
32+ # Ensure assets directory is writable by the non-root user
33+ RUN mkdir -p ${APP_HOME}/assets/data ${APP_HOME}/assets/models ${APP_HOME}/assets/cookies \
34+ && chown -R ubuntu:ubuntu ${APP_HOME}/assets
35+
3236# Run as non-root user to avoid creating root-owned files on bind mounts
3337# Base image already has 'ubuntu' user with UID 1000
3438USER ubuntu
You can’t perform that action at this time.
0 commit comments