Spaces:
Sleeping
Sleeping
soupstick commited on
Commit ·
9970b09
1
Parent(s): c664042
Ensure /app/runs exists and is writable in container
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -6,13 +6,14 @@ ENV PYTHONUNBUFFERED=1
|
|
| 6 |
WORKDIR /app
|
| 7 |
ENV HOME=/app
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends git build-essential && rm -rf /var/lib/apt/lists/*
|
| 9 |
-
RUN mkdir -p $HOME/.streamlit && chmod -R 777 $HOME/.streamlit
|
| 10 |
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
|
| 11 |
COPY pyproject.toml requirements.txt README.md ./
|
| 12 |
COPY searchqual ./searchqual
|
| 13 |
RUN pip install --upgrade pip && pip install -r requirements.txt && pip install -e .
|
| 14 |
COPY configs ./configs
|
| 15 |
COPY examples ./examples
|
|
|
|
| 16 |
COPY streamlit_app.py ./streamlit_app.py
|
| 17 |
ENV SEARCHQUAL_RUNS=/app/runs
|
| 18 |
VOLUME ["/app/runs"]
|
|
|
|
| 6 |
WORKDIR /app
|
| 7 |
ENV HOME=/app
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends git build-essential && rm -rf /var/lib/apt/lists/*
|
| 9 |
+
RUN mkdir -p $HOME/.streamlit $HOME/runs && chmod -R 777 $HOME/.streamlit $HOME/runs
|
| 10 |
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
|
| 11 |
COPY pyproject.toml requirements.txt README.md ./
|
| 12 |
COPY searchqual ./searchqual
|
| 13 |
RUN pip install --upgrade pip && pip install -r requirements.txt && pip install -e .
|
| 14 |
COPY configs ./configs
|
| 15 |
COPY examples ./examples
|
| 16 |
+
COPY runs ./runs
|
| 17 |
COPY streamlit_app.py ./streamlit_app.py
|
| 18 |
ENV SEARCHQUAL_RUNS=/app/runs
|
| 19 |
VOLUME ["/app/runs"]
|