Dockerfile 665 B

123456789101112131415161718192021222324252627282930
  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_API_URL http://127.0.0.1:5001
  7. ENV CONSOLE_WEB_URL http://127.0.0.1:3000
  8. ENV SERVICE_API_URL http://127.0.0.1:5001
  9. ENV APP_API_URL http://127.0.0.1:5001
  10. ENV APP_WEB_URL http://127.0.0.1:3000
  11. EXPOSE 5001
  12. WORKDIR /app/api
  13. COPY requirements.txt /app/api/requirements.txt
  14. RUN pip install -r requirements.txt
  15. COPY . /app/api/
  16. COPY docker/entrypoint.sh /entrypoint.sh
  17. RUN chmod +x /entrypoint.sh
  18. ARG COMMIT_SHA
  19. ENV COMMIT_SHA ${COMMIT_SHA}
  20. ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]