File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,18 +7,19 @@ RUN useradd -m appuser
77
88# Install dependencies first (better caching)
99COPY app/requirements.txt .
10- RUN pip install --no-cache-dir -r requirements.txt \
11- && pip uninstall -y jaraco.context || true \
12- && pip install --no-cache-dir "jaraco.context==6.1.0"
10+
11+ RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel \
12+ && python -m pip install --no-cache-dir -r requirements.txt \
13+ && python -m pip uninstall -y jaraco.context || true \
14+ && python -m pip install --no-cache-dir "jaraco.context==6.1.0" \
15+ && python -m pip show jaraco.context
1316
1417# Copy application code
1518COPY app/ .
1619
17- # Environment variables for Flask (Semgrep-safe)
1820ENV FLASK_HOST=0.0.0.0
1921ENV FLASK_PORT=5000
2022
21- # Switch to non-root user
2223USER appuser
2324
2425EXPOSE 5000
You can’t perform that action at this time.
0 commit comments