Spaces:
Build error
Build error
need users with permission to write
#2
by radames - opened
- Dockerfile +13 -1
Dockerfile
CHANGED
|
@@ -5,5 +5,17 @@ WORKDIR /app
|
|
| 5 |
COPY requirements.txt ./requirements.txt
|
| 6 |
RUN pip3 install -r requirements.txt
|
| 7 |
RUN python -m spacy download en_core_web_sm --default-timeout=900
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
CMD streamlit run app.py
|
|
|
|
| 5 |
COPY requirements.txt ./requirements.txt
|
| 6 |
RUN pip3 install -r requirements.txt
|
| 7 |
RUN python -m spacy download en_core_web_sm --default-timeout=900
|
| 8 |
+
|
| 9 |
+
# User
|
| 10 |
+
RUN useradd -m -u 1000 user
|
| 11 |
+
USER user
|
| 12 |
+
ENV HOME /home/user
|
| 13 |
+
ENV PATH $HOME/.local/bin:$PATH
|
| 14 |
+
WORKDIR $HOME
|
| 15 |
+
RUN mkdir app
|
| 16 |
+
WORKDIR $HOME/app
|
| 17 |
+
|
| 18 |
+
COPY . $HOME/app
|
| 19 |
+
|
| 20 |
+
EXPOSE 8501
|
| 21 |
CMD streamlit run app.py
|