Files
cbwebreader/Dockerfile
Ajurna 50d46ab835
All checks were successful
Build and push image / deploy (push) Has been cancelled
updating deps
2023-10-13 10:17:44 +01:00

34 lines
793 B
Docker

FROM python:3.12-slim-bookworm
ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1
RUN mkdir /src
RUN mkdir /static
WORKDIR /src
COPY . /src/
RUN apt update \
&& apt install -y npm cron unrar-free libmariadb-dev libpq-dev pkg-config swig \
&& pip install --upgrade pip \
&& pip install -r requirements.txt \
&& cd frontend \
&& npm install \
&& npm run build \
&& apt remove -y npm software-properties-common pkg-config swig \
&& rm -r node_modules \
&& apt -y auto-remove \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
RUN cat /src/cbreader/crontab >> /etc/cron.daily/cbreader
EXPOSE 8000