File size: 682 Bytes
225af6a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.10-slim

WORKDIR /app

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1 \
    PIP_NO_CACHE_DIR=1 \
    PIP_DISABLE_PIP_VERSION_CHECK=1

# Create non-root user
RUN useradd -m -u 1000 appuser

# Install only Streamlit dependencies
RUN pip install --no-cache-dir \
    streamlit>=1.28.0 \
    requests>=2.31.0 \
    pandas>=2.0.0

# Copy only the Streamlit app
COPY --chown=appuser:appuser hopcroft_skill_classification_tool_competition/streamlit_app.py ./

EXPOSE 8501

USER appuser

# Set API URL to point to the API service
ENV API_BASE_URL=http://hopcroft-api:8080

CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]