modified WORKDIR to start at . since we're going to add reflex later at same level as app
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -8,7 +8,7 @@ ENV PYTHONUNBUFFERED 1
|
|
8 |
ENV ENVIRONMENT=dev
|
9 |
|
10 |
COPY ./app /app
|
11 |
-
WORKDIR
|
12 |
RUN mkdir /data
|
13 |
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
@@ -24,4 +24,4 @@ ENV TRANSFORMERS_CACHE=/usr/local/lib/python3.10/site-packages/llama_index/legac
|
|
24 |
# ^ not elegant but it works
|
25 |
# HF warning says that TRANSFORMERS_CACHE will be deprecated in transformers v5, and advise to use HF_HOME
|
26 |
|
27 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
8 |
ENV ENVIRONMENT=dev
|
9 |
|
10 |
COPY ./app /app
|
11 |
+
WORKDIR .
|
12 |
RUN mkdir /data
|
13 |
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
24 |
# ^ not elegant but it works
|
25 |
# HF warning says that TRANSFORMERS_CACHE will be deprecated in transformers v5, and advise to use HF_HOME
|
26 |
|
27 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|