Dockerfile 742 B

123456789101112131415161718192021222324252627282930313233
  1. FROM python:3.10-slim
  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. RUN apt-get update && \
  14. apt-get install -y bash curl wget vim gcc g++ python3-dev libc-dev libffi-dev nodejs
  15. COPY requirements.txt /app/api/requirements.txt
  16. RUN pip install -r requirements.txt
  17. COPY . /app/api/
  18. COPY docker/entrypoint.sh /entrypoint.sh
  19. RUN chmod +x /entrypoint.sh
  20. ARG COMMIT_SHA
  21. ENV COMMIT_SHA ${COMMIT_SHA}
  22. ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]