Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -9
Dockerfile
CHANGED
@@ -1,23 +1,18 @@
|
|
1 |
# Base image
|
2 |
FROM python:3.9
|
3 |
|
4 |
-
# Set a non-root user
|
5 |
-
RUN useradd -m appuser
|
6 |
-
USER appuser
|
7 |
-
|
8 |
# Set working directory
|
9 |
WORKDIR /code
|
10 |
|
11 |
# Copy requirements file and install dependencies
|
12 |
-
COPY --chown=appuser ./requirements.txt /code/requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
|
15 |
-
#
|
16 |
-
RUN mkdir -p /storage
|
17 |
-
RUN
|
|
|
18 |
|
19 |
# Copy application code
|
20 |
-
COPY --chown=appuser . /code
|
21 |
|
22 |
# Set the command to run the app
|
23 |
CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "7860"]
|
|
|
1 |
# Base image
|
2 |
FROM python:3.9
|
3 |
|
|
|
|
|
|
|
|
|
4 |
# Set working directory
|
5 |
WORKDIR /code
|
6 |
|
7 |
# Copy requirements file and install dependencies
|
|
|
8 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
9 |
|
10 |
+
# create folder inside code folder
|
11 |
+
RUN mkdir -p /code/storage/bm25
|
12 |
+
RUN mkdir -p /code/storage/kg
|
13 |
+
|
14 |
|
15 |
# Copy application code
|
|
|
16 |
|
17 |
# Set the command to run the app
|
18 |
CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "7860"]
|