Commit All
This commit is contained in:
		
							
								
								
									
										36
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
			
		||||
FROM python:3.13-slim
 | 
			
		||||
 | 
			
		||||
# Set environment variables
 | 
			
		||||
ENV PYTHONDONTWRITEBYTECODE=1 \
 | 
			
		||||
    PYTHONUNBUFFERED=1 \
 | 
			
		||||
    TZ=Europe/Berlin
 | 
			
		||||
 | 
			
		||||
# Install minimal dependencies
 | 
			
		||||
RUN apt-get update && apt-get install -y --no-install-recommends \
 | 
			
		||||
    tzdata \
 | 
			
		||||
    && rm -rf /var/lib/apt/lists/* \
 | 
			
		||||
    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
 | 
			
		||||
    && echo $TZ > /etc/timezone
 | 
			
		||||
 | 
			
		||||
# Set working directory
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
# Copy dependency files
 | 
			
		||||
COPY requirements.txt ./
 | 
			
		||||
 | 
			
		||||
# Install Python dependencies using pip (simpler for container)
 | 
			
		||||
RUN pip install --no-cache-dir -r requirements.txt
 | 
			
		||||
 | 
			
		||||
# Copy application files
 | 
			
		||||
COPY main.py .
 | 
			
		||||
COPY Vektor-Logo.svg ./
 | 
			
		||||
 | 
			
		||||
# Create static directory and copy logo
 | 
			
		||||
RUN mkdir -p static && \
 | 
			
		||||
    cp Vektor-Logo.svg static/logo.svg
 | 
			
		||||
 | 
			
		||||
# Expose port
 | 
			
		||||
EXPOSE 8000
 | 
			
		||||
 | 
			
		||||
# Run the application
 | 
			
		||||
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user