diff --git a/examples/streamlit/Dockerfile b/examples/streamlit/Dockerfile index c9866a8..00c40c6 100644 --- a/examples/streamlit/Dockerfile +++ b/examples/streamlit/Dockerfile @@ -11,7 +11,10 @@ WORKDIR $HOME/app RUN apt-get update && apt-get install --no-install-recommends -y \ build-essential \ software-properties-common \ - curl + curl \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + COPY requirements.txt requirements.txt COPY app.py app.py diff --git a/serve-encrypt/Dockerfile b/serve-encrypt/Dockerfile index a3a6429..736e9bf 100644 --- a/serve-encrypt/Dockerfile +++ b/serve-encrypt/Dockerfile @@ -1,16 +1,18 @@ # Use an official Debian as a parent image for a lightweight build FROM debian:stable-slim -# Install PostgreSQL client and GPG -RUN apt-get update && apt-get install --no-install-recommends -y gnupg2 curl postgresql-client && apt-get clean && rm -rf /var/lib/apt/lists/* +# Set the GNUPGHOME environment variable +ENV GNUPGHOME=/home/pguser/.gnupg +# Install PostgreSQL client and GPG # Create a non-root user and group (using user ID 1000 and group ID 1000 for compatibility) # Fixed commands for Debian -RUN groupadd -g 1000 pguser && \ - useradd -m -u 1000 -g pguser pguser - -# Set the GNUPGHOME environment variable -ENV GNUPGHOME=/home/pguser/.gnupg +RUN apt-get update \ + && apt-get install --no-install-recommends -y gnupg2 curl postgresql-client \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + && groupadd -g 1000 pguser \ + && useradd -m -u 1000 -g pguser pguser # Set working directory WORKDIR /home/pguser diff --git a/serve-filemanager/Dockerfile b/serve-filemanager/Dockerfile index 308b84e..c921922 100644 --- a/serve-filemanager/Dockerfile +++ b/serve-filemanager/Dockerfile @@ -7,9 +7,9 @@ COPY filebrowser.json /.filebrowser.json COPY startup.sh /usr/local/bin/startup.sh RUN apk add --update --no-cache \ - wget \ - zip \ - unzip \ + wget=1.21.4 \ + zip=3.0-r12 \ + unzip=6.0-r14 \ && adduser -D -u 1000 -g 1000 -h $HOME $USER \ && chmod +x /usr/local/bin/startup.sh \ && rm -rf /var/lib/apt/lists/*