AtmoAssistant/app/Dockerfile
Evan 9ae5ee3ef5
Some checks failed
Build image - Testing / build-api-testing (push) Failing after 24s
SonarQube Scan / SonarQube Trigger (push) Failing after 37s
First go at it
2025-01-20 23:15:24 -05:00

18 lines
No EOL
414 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 /AtmoAssistant
COPY . .
# Install requirements
RUN python -m pip install --no-cache-dir -r requirements.txt
# Start app
ENTRYPOINT [ "gunicorn" ]