Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Cleaning up comments
Browse files- Dockerfile +2 -13
Dockerfile
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.11.5-bookworm
|
3 |
|
4 |
# Install system dependencies first
|
@@ -33,7 +32,7 @@ RUN curl -sSL https://install.python-poetry.org | python3 - \
|
|
33 |
&& poetry config cache-dir /home/user/.cache/poetry \
|
34 |
&& poetry config virtualenvs.path /home/user/.local/share/virtualenvs
|
35 |
|
36 |
-
# Clone repo and set up project
|
37 |
RUN git clone https://github.com/dan-s-mueller/aerospace_chatbot.git /tmp/aerospace_chatbot && \
|
38 |
cp /tmp/aerospace_chatbot/pyproject.toml /tmp/aerospace_chatbot/poetry.lock ./ && \
|
39 |
cp -r /tmp/aerospace_chatbot/app/* $HOME/app/ && \
|
@@ -46,22 +45,12 @@ RUN git clone https://github.com/dan-s-mueller/aerospace_chatbot.git /tmp/aerosp
|
|
46 |
|
47 |
# Set up run env variables
|
48 |
ENV LOCAL_DB_PATH=$HOME/db
|
49 |
-
ENV AEROSPACE_CHATBOT_CONFIG='admin'
|
50 |
ENV PYTHONPATH=$HOME/src:$PYTHONPATH
|
51 |
|
52 |
# Set final work directory
|
53 |
WORKDIR $HOME/app
|
54 |
|
55 |
-
#
|
56 |
-
RUN pwd && ls -R
|
57 |
-
|
58 |
-
# Expose port and set health check
|
59 |
-
EXPOSE 8501
|
60 |
-
# HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
61 |
-
|
62 |
-
# Set entrypoint
|
63 |
-
# ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
64 |
-
|
65 |
CMD streamlit run app.py \
|
66 |
--server.headless true \
|
67 |
--server.enableCORS false \
|
|
|
|
|
1 |
FROM python:3.11.5-bookworm
|
2 |
|
3 |
# Install system dependencies first
|
|
|
32 |
&& poetry config cache-dir /home/user/.cache/poetry \
|
33 |
&& poetry config virtualenvs.path /home/user/.local/share/virtualenvs
|
34 |
|
35 |
+
# Clone repo and set up project with poetry
|
36 |
RUN git clone https://github.com/dan-s-mueller/aerospace_chatbot.git /tmp/aerospace_chatbot && \
|
37 |
cp /tmp/aerospace_chatbot/pyproject.toml /tmp/aerospace_chatbot/poetry.lock ./ && \
|
38 |
cp -r /tmp/aerospace_chatbot/app/* $HOME/app/ && \
|
|
|
45 |
|
46 |
# Set up run env variables
|
47 |
ENV LOCAL_DB_PATH=$HOME/db
|
|
|
48 |
ENV PYTHONPATH=$HOME/src:$PYTHONPATH
|
49 |
|
50 |
# Set final work directory
|
51 |
WORKDIR $HOME/app
|
52 |
|
53 |
+
# Expose port run streamlit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
CMD streamlit run app.py \
|
55 |
--server.headless true \
|
56 |
--server.enableCORS false \
|