Deeps-2005/java-ssl-scanner
0
1# Use an Eclipse Temurin JDK 21 JRE image as the base2FROM eclipse-temurin:21-jre-jammy3 4# Install Python 3.9 (which is python3.10 on Jammy) and necessary build tools5RUN apt-get update && \6 apt-get install -y --no-install-recommends python3.9 python3-pip && \7 apt-get clean && \8 rm -rf /var/lib/apt/lists/*9 10# Ensure python3.10 is the default python for pip11# Corrected path to python3.10 as it's the version installed by 'python3.9' on Jammy12RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 113 14# JAVA_HOME is usually correctly set in temurin images, but explicitly setting for clarity15ENV JAVA_HOME /opt/java/openjdk16ENV PATH $JAVA_HOME/bin:$PATH17 18# Explicitly disable Streamlit usage statistics to prevent permission errors19ENV STREAMLIT_SERVER_ENABLE_GATHER_USAGE_STATS=false20 21# Set the working directory in the container22WORKDIR /app23 24# Copy all project files to the working directory25COPY . /app26 27# Install Python dependencies28RUN pip install --no-cache-dir -r requirements.txt29 30# Make the run.sh script executable31RUN chmod +x /app/run.sh32 33# Expose the port that Streamlit will run on (Hugging Face default)34EXPOSE 786035 36# Command to run your application (this executes run.sh)37CMD ["./run.sh"]38 