AtmoAssistant/app/Dockerfile
2025-01-20 20:09:02 -05:00

18 lines
No EOL
409 B
Docker

# Using lightweight alpine image
FROM python:3-alpine
# Optimize Python behaviors for Docker
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PROMETHEUS_MULTIPROC_DIR=/dev/shm
ENV PAPERSIZE=letter
# Defining working directory and adding source code
WORKDIR /template
COPY . .
# Install requirements
RUN python -m pip install --no-cache-dir -r requirements.txt
# Start app
ENTRYPOINT [ "gunicorn" ]