16 lines
277 B
Docker
16 lines
277 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
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["python", "app.py"]
|