AtmoAssistant/app/Dockerfile

18 lines
414 B
Text
Raw Normal View History

2025-01-20 20:09:02 -05:00
# 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
2025-01-20 23:15:24 -05:00
WORKDIR /AtmoAssistant
2025-01-20 20:09:02 -05:00
COPY . .
# Install requirements
RUN python -m pip install --no-cache-dir -r requirements.txt
# Start app
ENTRYPOINT [ "gunicorn" ]