mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-07-07 11:35:12 +02:00
16 lines
349 B
Docker
16 lines
349 B
Docker
# Base image for Python
|
|
FROM python:slim
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy and install dependencies
|
|
COPY app/requirements.txt requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY app/ .
|
|
|
|
# Start command using shell to allow env substitution
|
|
CMD sh -c "exec python app.py --port=\${PORT}"
|