Dockerfile 556 B

12345678910111213141516171819202122232425262728
  1. FROM langgenius/base:1.0.0-bullseye-slim as langgenius-api
  2. LABEL maintainer="takatost@gmail.com"
  3. ENV FLASK_APP app.py
  4. ENV EDITION SELF_HOSTED
  5. ENV DEPLOY_ENV PRODUCTION
  6. ENV CONSOLE_URL http://127.0.0.1:5001
  7. ENV API_URL http://127.0.0.1:5001
  8. ENV APP_URL http://127.0.0.1:5001
  9. EXPOSE 5001
  10. WORKDIR /app/api
  11. COPY requirements.txt /app/api/requirements.txt
  12. RUN pip install -r requirements.txt
  13. COPY . /app/api/
  14. COPY docker/entrypoint.sh /entrypoint.sh
  15. RUN chmod +x /entrypoint.sh
  16. ARG COMMIT_SHA
  17. ENV COMMIT_SHA ${COMMIT_SHA}
  18. ENTRYPOINT ["/entrypoint.sh"]