| ENV FLASK_APP app.py | ENV FLASK_APP app.py | ||||
| ENV EDITION SELF_HOSTED | ENV EDITION SELF_HOSTED | ||||
| ENV DEPLOY_ENV PRODUCTION | ENV DEPLOY_ENV PRODUCTION | ||||
| ENV TRANSFORMERS_OFFLINE true | |||||
| ENV CONSOLE_API_URL http://127.0.0.1:5001 | ENV CONSOLE_API_URL http://127.0.0.1:5001 | ||||
| ENV CONSOLE_WEB_URL http://127.0.0.1:3000 | ENV CONSOLE_WEB_URL http://127.0.0.1:3000 | ||||
| ENV SERVICE_API_URL http://127.0.0.1:5001 | ENV SERVICE_API_URL http://127.0.0.1:5001 | ||||
| COPY . /app/api/ | COPY . /app/api/ | ||||
| RUN python -c "from transformers import GPT2TokenizerFast; GPT2TokenizerFast.from_pretrained('gpt2')" | RUN python -c "from transformers import GPT2TokenizerFast; GPT2TokenizerFast.from_pretrained('gpt2')" | ||||
| ENV TRANSFORMERS_OFFLINE true | |||||
| COPY docker/entrypoint.sh /entrypoint.sh | COPY docker/entrypoint.sh /entrypoint.sh | ||||
| RUN chmod +x /entrypoint.sh | RUN chmod +x /entrypoint.sh |