Replaces static CMD with an entrypoint that generates RNS config from environment variables (RNS_TCP_HOST/PORT), enabling TCP transport for environments without LAN auto-discovery (e.g. Docker on macOS).
18 lines
307 B
Docker
18 lines
307 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p /data \
|
|
&& ln -sf /data/index.db index.db \
|
|
&& ln -sf /data/tinyweb_identity tinyweb_identity
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|