Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -47,7 +47,10 @@ COPY config.properties /home/torchserve/config.properties
|
|
47 |
RUN adduser --disabled-password --gecos '' --uid 1000 appuser
|
48 |
|
49 |
WORKDIR /app
|
50 |
-
|
|
|
|
|
|
|
51 |
|
52 |
# Pre-create directories needed by the app and Gradio, and set permissions
|
53 |
RUN mkdir -p uploads_gradio outputs_gradio flagged && \
|
@@ -56,6 +59,6 @@ RUN mkdir -p uploads_gradio outputs_gradio flagged && \
|
|
56 |
USER appuser
|
57 |
|
58 |
# Expose the port for Gradio
|
59 |
-
EXPOSE 7860
|
60 |
|
61 |
CMD ["python", "app.py"]
|
|
|
47 |
RUN adduser --disabled-password --gecos '' --uid 1000 appuser
|
48 |
|
49 |
WORKDIR /app
|
50 |
+
|
51 |
+
# Copy your app.py and examples folder into the container
|
52 |
+
COPY app.py /app/app.py
|
53 |
+
COPY examples /app/examples
|
54 |
|
55 |
# Pre-create directories needed by the app and Gradio, and set permissions
|
56 |
RUN mkdir -p uploads_gradio outputs_gradio flagged && \
|
|
|
59 |
USER appuser
|
60 |
|
61 |
# Expose the port for Gradio
|
62 |
+
EXPOSE 7860
|
63 |
|
64 |
CMD ["python", "app.py"]
|