Spaces:
Running
Running
removed comments from dockerfile
Browse files- Dockerfile +0 -8
Dockerfile
CHANGED
@@ -1,23 +1,15 @@
|
|
1 |
-
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
10 |
-
# Set Hugging Face cache directory to /app/.cache
|
11 |
ENV HF_HOME=/app/.cache
|
12 |
|
13 |
-
# Give write permissions to the /app directory (if needed)
|
14 |
RUN chmod -R 777 /app
|
15 |
|
16 |
-
# Install any necessary dependencies
|
17 |
RUN pip install -r requirements.txt
|
18 |
|
19 |
-
# Expose the correct port that the app will run on
|
20 |
EXPOSE 7860
|
21 |
|
22 |
-
# Run the application with Chainlit's native command
|
23 |
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
|
|
5 |
COPY . /app
|
6 |
|
|
|
7 |
ENV HF_HOME=/app/.cache
|
8 |
|
|
|
9 |
RUN chmod -R 777 /app
|
10 |
|
|
|
11 |
RUN pip install -r requirements.txt
|
12 |
|
|
|
13 |
EXPOSE 7860
|
14 |
|
|
|
15 |
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|