Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -17,8 +17,8 @@ RUN apt-get update && \
|
|
17 |
# For Microsoft Core Fonts EULA pre-acceptance
|
18 |
&& echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-sections \
|
19 |
&& apt-get install -y --no-install-recommends ttf-mscorefonts-installer \
|
20 |
-
&&
|
21 |
-
|
22 |
rm -rf /var/lib/apt/lists/*
|
23 |
|
24 |
# Create a non-root user and group for security and permission handling
|
@@ -48,4 +48,4 @@ EXPOSE 8501
|
|
48 |
# Command to run Streamlit
|
49 |
# Using server.headless=true is good practice for containers.
|
50 |
# Streamlit will try to create .streamlit in the user's home dir (/home/appuser)
|
51 |
-
CMD ["streamlit", "run", "app.py", "--server.headless=true", "--server.port=8501", "--server.fileWatcherType=none"]
|
|
|
17 |
# For Microsoft Core Fonts EULA pre-acceptance
|
18 |
&& echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-sections \
|
19 |
&& apt-get install -y --no-install-recommends ttf-mscorefonts-installer \
|
20 |
+
&& fc-cache -f -v && \
|
21 |
+
apt-get clean && \
|
22 |
rm -rf /var/lib/apt/lists/*
|
23 |
|
24 |
# Create a non-root user and group for security and permission handling
|
|
|
48 |
# Command to run Streamlit
|
49 |
# Using server.headless=true is good practice for containers.
|
50 |
# Streamlit will try to create .streamlit in the user's home dir (/home/appuser)
|
51 |
+
CMD ["streamlit", "run", "app.py", "--server.headless=true", "--server.port=8501", "--server.fileWatcherType=none"]
|