e-Preprint archive nrpl.xyz

Fix Build Failure on Dockerfile #1

closed opened by vaporize.me targeting master

Directory should be created first before changing the ownership.

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:y2rmteefnuyglpyoski6bzzv/sh.tangled.repo.pull/3mf2kbcdkjj22
+6 -2
Diff #0
+2 -1
Dockerfile
··· 35 35 COPY --chown=appuser:appuser .env . 36 36 COPY --chown=appuser:appuser handles.txt . 37 37 38 - RUN chown -R appuser:appuser /app/data/gnupg 38 + RUN mkdir -p /app/data/gnupg \ 39 + && chown -R appuser:appuser /app/data/gnupg 39 40 40 41 # Copy entrypoint 41 42 COPY entrypoint.sh /entrypoint.sh
+1 -1
docker-compose.yml
··· 10 10 env_file: 11 11 - ./.env 12 12 ports: 13 - - "8000:8000" 13 + - "8000:8080" 14 14 environment: 15 15 - ENVIRONMENT=production 16 16 - GNUPGHOME=/app/data/gnupg
+3
main.py
··· 41 41 from subscription import init_pinner 42 42 # from subscription import router as ipfs_router, set_service 43 43 44 + from dotenv import load_dotenv 45 + load_dotenv() 46 + 44 47 @asynccontextmanager 45 48 async def lifespan(app: FastAPI): 46 49 pinner = init_pinner(

History

1 round 1 comment
sign up or login to add to the discussion
vaporize.me submitted #0
expand 1 comment

Included changes under testing. Closed.

closed without merging