Skip to content
This repository was archived by the owner on Jun 21, 2026. It is now read-only.

Commit 15391ac

Browse files
committed
Crash loop resolution
1 parent 109d94b commit 15391ac

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ RUN apt-get update \
77
RUN python -m venv /opt/venv
88
ENV PATH="/opt/venv/bin:${PATH}"
99
COPY requirements.txt .
10-
RUN pip install --no-cache-dir --upgrade pip \
10+
# Pin pip to the pre-24.1 era: the ancient FastAPI/uvicorn stack has legacy
11+
# metadata that pip >= 24.1 rejects. (The durable fix is modernising the deps.)
12+
RUN pip install --no-cache-dir "pip<24.1" \
1113
&& pip install --no-cache-dir -r requirements.txt
1214

1315
# Runtime: minimal official slim base, no build tools.
@@ -27,6 +29,9 @@ RUN groupadd -g 1000 zxbasic \
2729

2830
WORKDIR /app
2931
COPY --chown=zxbasic:zxbasic . /app/
32+
# zxbc writes the compiled .tap into the working dir, so /app itself must be
33+
# writable by the non-root user (WORKDIR creates the dir owned by root).
34+
RUN chown zxbasic:zxbasic /app
3035
USER zxbasic
3136

3237
EXPOSE 80

0 commit comments

Comments
 (0)