File: Dockerfile

package info (click to toggle)
kapidox 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,200 kB
  • sloc: python: 1,812; javascript: 627; sh: 206; xml: 182; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (4)
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
FROM debian:bullseye-slim

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
    && apt-get install --no-install-recommends -y doxygen graphviz python3-pip python3-gv \
    && apt-get autoremove -y && apt-get clean

RUN useradd --create-home --shell /bin/bash kapidox

USER kapidox
ENV KAPIDOX_HOME=/home/kapidox
ENV BUILD_DIR=${KAPIDOX_HOME}/apidox-build
ENV PATH=${KAPIDOX_HOME}/.local/bin:${PATH}

WORKDIR ${KAPIDOX_HOME}

RUN pip3 install --upgrade pip

COPY --chown=kapidox:kapidox requirements.frozen.txt .
RUN pip3 install --no-cache-dir -r requirements.frozen.txt

COPY --chown=kapidox:kapidox . .
RUN pip3 install --no-cache-dir --no-deps --editable .

RUN mkdir ${BUILD_DIR}
WORKDIR ${BUILD_DIR}