| 1 |
## |
| 2 |
## ===================================================================================== |
| 3 |
## C O P Y R I G H T |
| 4 |
## ------------------------------------------------------------------------------------- |
| 5 |
## Copyright (c) 2023 by Robert Bosch GmbH. All rights reserved. |
| 6 |
## |
| 7 |
## Author(s): |
| 8 |
## - Markus Braun, :em engineering methods AG (contracted by Robert Bosch GmbH) |
| 9 |
## ===================================================================================== |
| 10 |
## |
| 11 |
|
| 12 |
FROM python:3-slim |
| 13 |
|
| 14 |
ARG VARIANT=3.12 |
| 15 |
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT} |
| 16 |
|
| 17 |
LABEL maintainer="Bosch Docs as Code Doxysphinx <https://github.com/boschglobal/doxysphinx>" |
| 18 |
|
| 19 |
RUN useradd -ms /bin/bash doxysphinx_user |
| 20 |
|
| 21 |
# set environment |
| 22 |
ENV PYTHONUNBUFFERED 1 |
| 23 |
ENV TZ=Europe/Berlin |
| 24 |
ENV PATH="/home/vscode/.local/bin:${PATH}" |
| 25 |
|
| 26 |
# set shell |
| 27 |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] |
| 28 |
|
| 29 |
# Install dart-sass (needed for scoping css files to specific html elements) |
| 30 |
RUN curl -sSL https://github.com/sass/dart-sass/releases/download/1.49.7/dart-sass-1.49.7-linux-x64.tar.gz | \ |
| 31 |
tar -xzvf - --strip-components=1 -C /home/vscode/.local/bin dart-sass/sass |
| 32 |
|
| 33 |
COPY dist/*.whl /app |
| 34 |
RUN pip install *.whl |
| 35 |
|
| 36 |
CMD [ "doxysphinx" ] |