text / Dockerfile
soojeongcrystal's picture
Update Dockerfile
a59b05f verified
raw
history blame contribute delete
447 Bytes
FROM python:3.10
# Install Java
RUN apt-get update && \
apt-get install -y openjdk-11-jdk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set JAVA_HOME
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
ENV PATH $JAVA_HOME/bin:$PATH
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application
COPY . .
# Run the application
CMD ["streamlit", "run", "app.py"]