Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
|
|
|
3 |
|
4 |
# Set environment variables for Python, pip, and locale
|
5 |
ENV PYTHONUNBUFFERED 1
|
@@ -11,8 +12,6 @@ ENV LANG C.UTF-8
|
|
11 |
ENV LC_ALL C.UTF-8
|
12 |
|
13 |
# Install system dependencies (as root)
|
14 |
-
# Added build-essential for packages that might need to compile C code
|
15 |
-
# Added libffi-dev (often needed by cryptography, a common sub-dependency)
|
16 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
17 |
ffmpeg \
|
18 |
imagemagick \
|
@@ -57,7 +56,7 @@ RUN groupadd -r appgroup --gid 1000 && \
|
|
57 |
|
58 |
# Set Streamlit home directory (already created and chowned)
|
59 |
ENV STREAMLIT_HOME=/home/appuser/.streamlit
|
60 |
-
ENV BROWSER_GATHERUSAGEDATA=false
|
61 |
|
62 |
# Set the working directory in the container
|
63 |
WORKDIR /app
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
+
# Using python:3.10-slim-bullseye for a Debian Bullseye based slim Python 3.10 environment
|
3 |
+
FROM python:3.10-slim-bullseye
|
4 |
|
5 |
# Set environment variables for Python, pip, and locale
|
6 |
ENV PYTHONUNBUFFERED 1
|
|
|
12 |
ENV LC_ALL C.UTF-8
|
13 |
|
14 |
# Install system dependencies (as root)
|
|
|
|
|
15 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
16 |
ffmpeg \
|
17 |
imagemagick \
|
|
|
56 |
|
57 |
# Set Streamlit home directory (already created and chowned)
|
58 |
ENV STREAMLIT_HOME=/home/appuser/.streamlit
|
59 |
+
ENV BROWSER_GATHERUSAGEDATA=false # Corrected Streamlit env var for telemetry
|
60 |
|
61 |
# Set the working directory in the container
|
62 |
WORKDIR /app
|