19 lines
290 B
Docker
19 lines
290 B
Docker
FROM python:{{PYTHON_VERSION}}-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application
|
|
COPY . .
|
|
|
|
# Set environment
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PORT={{PORT}}
|
|
|
|
EXPOSE {{PORT}}
|
|
|
|
CMD ["python", "{{ENTRY_POINT}}"]
|