Skip to content

Commit 35a5d19

Browse files
committed
fixes
1 parent 5afdc5d commit 35a5d19

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ attach: ## follow the logs of the service
3939
docker compose -f local.yml logs -f
4040

4141
docker-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

4444
stop: ## stop all services defined in Docker Compose
4545
docker compose -f local.yml stop

compose/linkedin/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
3030
COPY . ${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
3438
USER ubuntu

0 commit comments

Comments
 (0)