mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Manifest list digests can be found with: ```sh docker buildx imagetools inspect python:3.11.4-bullseye docker buildx imagetools inspect python:3.11.4-slim-bullseye docker buildx imagetools inspect ghcr.io/nginxinc/nginx-unprivileged:1.25.0-alpine3.17 ``` The node images are pinned in #2736 Fixes #2751 Partially fixes #2752
		
			
				
	
	
		
			29 lines
		
	
	
		
			902 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			902 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM python:3.11.4-bullseye@sha256:bede19c9a8999a5461a01a6c0e0893eaf3e712fccb28f547ba9d3391310f378b as builder
 | |
| 
 | |
| ENV PYTHONDONTWRITEBYTECODE=1 \
 | |
|   PYTHONUNBUFFERED=1 \
 | |
|   PIP_NO_CACHE_DIR=true
 | |
| 
 | |
| RUN pip install --upgrade pip && pip install poetry
 | |
| RUN poetry config installer.max-workers 10 && \
 | |
|   poetry config virtualenvs.create false
 | |
| RUN python -m venv /opt/venv
 | |
| ENV VIRTUAL_ENV="/opt/venv" PATH="/opt/venv/bin:${PATH}"
 | |
| 
 | |
| COPY poetry.lock pyproject.toml ./
 | |
| RUN poetry install --sync --no-interaction --no-ansi --no-root --only main
 | |
| 
 | |
| FROM python:3.11.4-slim-bullseye@sha256:4102cb4b15a5c0c52068d3128f87b1d43e6a3b431714f4a65e8b8e91750c7c54
 | |
| 
 | |
| WORKDIR /usr/src/app
 | |
| ENV NODE_ENV=production \
 | |
|   TRANSFORMERS_CACHE=/cache \
 | |
|   PYTHONDONTWRITEBYTECODE=1 \
 | |
|   PYTHONUNBUFFERED=1 \
 | |
|   PATH="/opt/venv/bin:$PATH" \
 | |
|   PYTHONPATH=`pwd`
 | |
| 
 | |
| COPY --from=builder /opt/venv /opt/venv
 | |
| COPY app .
 | |
| ENTRYPOINT ["python", "main.py"]
 |