-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (24 loc) · 804 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (24 loc) · 804 Bytes
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
31
32
33
34
35
36
FROM python:3.14-slim-trixie
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1
ENV PATH="${PATH}:/root/.local/bin"
RUN mkdir /src
RUN mkdir /static
WORKDIR /src
RUN echo "deb http://ftp.uk.debian.org/debian trixie non-free non-free-firmware" > /etc/apt/sources.list.d/non-free.list
RUN apt update \
&& apt install -y npm cron unrar libmariadb-dev libpq-dev pkg-config swig curl
COPY . /src/
RUN uv sync --frozen --no-dev
RUN cd frontend \
&& npm install \
&& npm run build \
&& rm -r node_modules
RUN cat /src/cbreader/crontab >> /etc/cron.daily/cbreader
EXPOSE 8000