docker updates
Browse files- Dockerfile +10 -4
Dockerfile
CHANGED
@@ -1,8 +1,14 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
-
WORKDIR /
|
4 |
-
|
5 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
RUN pip install --no-cache-dir --no-deps gradio_huggingfacehub_search
|
7 |
EXPOSE 7860
|
8 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
|
|
1 |
+
FROM python:3.11-slim
|
2 |
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
RUN apt-get update && apt-get install -y git
|
6 |
+
|
7 |
+
RUN useradd -m -u 1000 user
|
8 |
+
# Switch to root to change permissions
|
9 |
+
USER root
|
10 |
+
COPY --chown=user ./requirements.txt requirements.txt
|
11 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
12 |
RUN pip install --no-cache-dir --no-deps gradio_huggingfacehub_search
|
13 |
EXPOSE 7860
|
14 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|