Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the nlm-ingestor image as the base
|
2 |
+
FROM ghcr.io/nlmatics/nlm-ingestor:latest
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the current directory contents into the container at /app
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Make run.sh executable (in case it's not already)
|
11 |
+
RUN chmod +x /app/run.sh
|
12 |
+
|
13 |
+
# Download NLTK data
|
14 |
+
RUN python -m nltk.downloader punkt
|
15 |
+
RUN python -m nltk.downloader stopwords
|
16 |
+
RUN python -c "import nltk; nltk.download('punkt', download_dir='/usr/local/share/nltk_data')"
|
17 |
+
RUN python -c "import nltk; nltk.download('stopwords', download_dir='/usr/local/share/nltk_data')"
|
18 |
+
|
19 |
+
|
20 |
+
# Expose the port your app runs on (adjust if necessary)
|
21 |
+
EXPOSE 5001
|
22 |
+
|
23 |
+
# Use the original CMD to run your application
|
24 |
+
CMD ["/app/run.sh"]
|