Explorar el Código

feat: set transformers offline default true (#1143)

tags/0.3.21
takatost hace 2 años
padre
commit
b63a685386
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      api/Dockerfile

+ 2
- 1
api/Dockerfile Ver fichero

@@ -3,7 +3,7 @@ FROM python:3.10-slim AS base

LABEL maintainer="takatost@gmail.com"

RUN apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc g++ python3-dev libc-dev libffi-dev

COPY requirements.txt /requirements.txt
@@ -16,6 +16,7 @@ FROM python:3.10-slim AS builder
ENV FLASK_APP app.py
ENV EDITION SELF_HOSTED
ENV DEPLOY_ENV PRODUCTION
ENV TRANSFORMERS_OFFLINE true
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

Cargando…
Cancelar
Guardar