2023-08-03 22:22:27 +08:00
|
|
|
FROM langgenius/base:1.0.1-bullseye-slim as langgenius-api
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
LABEL maintainer="takatost@gmail.com"
|
|
|
|
|
|
|
|
ENV FLASK_APP app.py
|
|
|
|
ENV EDITION SELF_HOSTED
|
|
|
|
ENV DEPLOY_ENV PRODUCTION
|
2023-07-14 11:19:26 +08:00
|
|
|
ENV CONSOLE_API_URL http://127.0.0.1:5001
|
|
|
|
ENV CONSOLE_WEB_URL http://127.0.0.1:3000
|
|
|
|
ENV SERVICE_API_URL http://127.0.0.1:5001
|
|
|
|
ENV APP_API_URL http://127.0.0.1:5001
|
|
|
|
ENV APP_WEB_URL http://127.0.0.1:3000
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
EXPOSE 5001
|
|
|
|
|
|
|
|
WORKDIR /app/api
|
|
|
|
|
|
|
|
COPY requirements.txt /app/api/requirements.txt
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
COPY . /app/api/
|
|
|
|
|
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
|
|
|
ARG COMMIT_SHA
|
|
|
|
ENV COMMIT_SHA ${COMMIT_SHA}
|
|
|
|
|
2023-07-18 16:22:34 +08:00
|
|
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|