Spaces:
Sleeping
Sleeping
PetrosStav
commited on
Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -1,14 +1,19 @@
|
|
1 |
FROM intelligencenoborders/scinobo-citance-analysis:v0.1.0
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
# Set the working directory in the container
|
4 |
WORKDIR /app/src
|
5 |
|
6 |
# Expose the port that Gradio will run on
|
7 |
EXPOSE 7860
|
8 |
|
9 |
-
# Give permissions
|
10 |
-
RUN chmod -R 777 /app
|
11 |
-
RUN chmod -R 777 /.cache
|
12 |
-
|
13 |
# Run app.py when the container launches
|
14 |
CMD ["python", "-m", "citance_analysis.server.gradio_app"]
|
|
|
1 |
FROM intelligencenoborders/scinobo-citance-analysis:v0.1.0
|
2 |
|
3 |
+
# Give permissions
|
4 |
+
RUN chmod -R 777 /app
|
5 |
+
|
6 |
+
# Copy files
|
7 |
+
COPY download_model.py /app
|
8 |
+
|
9 |
+
# Run the download
|
10 |
+
RUN python /app/download_model.py
|
11 |
+
|
12 |
# Set the working directory in the container
|
13 |
WORKDIR /app/src
|
14 |
|
15 |
# Expose the port that Gradio will run on
|
16 |
EXPOSE 7860
|
17 |
|
|
|
|
|
|
|
|
|
18 |
# Run app.py when the container launches
|
19 |
CMD ["python", "-m", "citance_analysis.server.gradio_app"]
|