Spaces:
Running
Running
kwabs22
commited on
Commit
•
fa9e075
1
Parent(s):
bab8055
Claude suggested edits to the Dockerfile
Browse files- Dockerfile +8 -7
Dockerfile
CHANGED
@@ -17,15 +17,16 @@ COPY ./requirements.txt /code/requirements.txt
|
|
17 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
18 |
|
19 |
# Download Spacy models
|
20 |
-
RUN python -m spacy download en_core_web_sm
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
|
27 |
# Download and place the frpc_linux_amd64_v0.2 file
|
28 |
RUN curl -L https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 -o /opt/venv/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2
|
|
|
29 |
|
30 |
# Set up a new user named "user" with user ID 1000
|
31 |
RUN useradd -m -u 1000 user
|
@@ -48,4 +49,4 @@ WORKDIR $HOME/app
|
|
48 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
49 |
COPY --chown=user . $HOME/app
|
50 |
|
51 |
-
CMD ["python", "app.py"]
|
|
|
17 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
18 |
|
19 |
# Download Spacy models
|
20 |
+
RUN python -m spacy download en_core_web_sm && \
|
21 |
+
python -m spacy download ko_core_news_sm && \
|
22 |
+
python -m spacy download ja_core_news_sm && \
|
23 |
+
python -m spacy download zh_core_web_sm && \
|
24 |
+
python -m spacy download es_core_news_sm && \
|
25 |
+
python -m spacy download de_core_news_sm
|
26 |
|
27 |
# Download and place the frpc_linux_amd64_v0.2 file
|
28 |
RUN curl -L https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 -o /opt/venv/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2
|
29 |
+
RUN chmod +x /opt/venv/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2
|
30 |
|
31 |
# Set up a new user named "user" with user ID 1000
|
32 |
RUN useradd -m -u 1000 user
|
|
|
49 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
50 |
COPY --chown=user . $HOME/app
|
51 |
|
52 |
+
CMD ["python", "app.py"]
|