mirror of
				https://github.com/bcye/structured-wikivoyage-exports.git
				synced 2025-10-30 22:52:45 +00:00 
			
		
		
		
	switch to multistage build
This commit is contained in:
		| @@ -1,8 +0,0 @@ | |||||||
| .env |  | ||||||
| __pycache__ |  | ||||||
| .venv |  | ||||||
| .pytest_cache |  | ||||||
| docs |  | ||||||
| node_modules |  | ||||||
| output |  | ||||||
| sketching |  | ||||||
							
								
								
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -1,10 +1,15 @@ | |||||||
| FROM ghcr.io/astral-sh/uv:0.6-python3.12-bookworm | # use python 3.12 as a base image | ||||||
|  | FROM docker.io/python:3.12-alpine | ||||||
|  | # use the latest version of uv, independently of the python version | ||||||
|  | COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||||||
|  |  | ||||||
| WORKDIR /app | WORKDIR /app | ||||||
|  |  | ||||||
| COPY pyproject.toml uv.lock ./ | # copy the requirements and install them | ||||||
|  | COPY pyproject.toml uv.lock . | ||||||
| RUN uv sync --frozen | RUN uv sync --frozen | ||||||
|  |  | ||||||
| COPY . . | # copy the rest of the code | ||||||
|  | COPY src . | ||||||
|  |  | ||||||
| CMD ["uv", "run", "main.py"] | CMD ["uv", "run", "main.py"] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user