Spaces:
Sleeping
Sleeping
File size: 696 Bytes
63a3ec4 fd9fa1c 63a3ec4 2e74ec3 8a0c27f 63a3ec4 8a0c27f 63a3ec4 a6f64da 63a3ec4 a6f64da 8a0c27f 63a3ec4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
FROM python:3.9 as core
COPY ./core/requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
WORKDIR /app
COPY ./core .
RUN python ./initialization.py
FROM python:3.9
COPY ./api/requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
WORKDIR /app
COPY ./api .
COPY --from=core /app/engine.pickle /app/engine.pickle
EXPOSE 9999
ENTRYPOINT ["python", "service_manager.py"]
# FROM python:3.9 as build
#
# COPY ./requirements.txt ./requirements.txt
# RUN pip install -r requirements.txt
#
# WORKDIR /app
#
# COPY . .
#
# RUN mkdir -p /app/cache && chmod -R 777 /app/cache
#
# ENV TRANSFORMERS_CACHE=/app/cache
#
# EXPOSE 9999
# ENTRYPOINT ["python", "run.py"]
|