Dockerfile 423 B

123456789101112131415161718192021
  1. FROM python:3.9
  2. LABEL maintainer="Kirk Trombley <ktrom3894@gmail.com>"
  3. HEALTHCHECK CMD curl --fail http://localhost:5000/health || exit 1
  4. WORKDIR /app/
  5. ENV SQLALCHEMY_URL="sqlite:///./terrassumptions.db"
  6. COPY ./data /app/data
  7. COPY logging.conf ./
  8. COPY requirements.txt ./
  9. RUN pip3 install -r requirements.txt
  10. COPY ./app /app/app
  11. CMD uvicorn app:app --host 0.0.0.0 --port 5000 --root-path /terrassumptions/api