Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions focal-latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM eclipse-temurin:11-jdk-focal

SHELL ["/bin/bash", "-c"]

RUN addgroup --system dtcgroup && adduser --system dtcuser --ingroup dtcgroup

RUN apt-get update && apt-get upgrade -y && \
apt-get install -y build-essential curl wget zip unzip git bash graphviz python3 ruby-dev \
python3-pygments libyaml-dev ttf-dejavu
RUN gem update --system && gem install rdoc --no-document && gem install pygments.rb


USER dtcuser
WORKDIR /home/dtcuser
ENV HOME=/home/dtcuser

ENV GRADLE_USER_HOME=/home/dtcuser/.gradle

ARG DTC_VERSION
RUN git clone --branch ng https://github.com/docToolchain/docToolchain.git && \
cd docToolchain && \
git fetch --tags && \
git checkout ${DTC_VERSION} && \
git submodule update -i && \
# remove .git folders
rm -rf `find -type d -name .git` && \
umask g+w && \
./gradlew downloadDependencies && \
chmod -R o=u $GRADLE_USER_HOME && \
chmod -R g=u $GRADLE_USER_HOME && \
rm -r $GRADLE_USER_HOME/daemon && \
chmod -R o=u $HOME

# add reveal.js
RUN cd /home/dtcuser/docToolchain/resources/. && \
./clone.sh && \
cd -

ENV PATH="/home/dtcuser/docToolchain/bin:${PATH}"

USER dtcuser

WORKDIR /project

VOLUME /project

ENTRYPOINT /bin/bash