-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
44 lines (35 loc) · 1.53 KB
/
Dockerfile
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
37
38
39
40
41
42
43
44
# tmitocar dependencies (jq, ruby, coreutils)
FROM openjdk:17-jdk-buster
RUN set -x \
&& apt-get update \
\
#: force installing jing due to different issues regarding to java runtime environment \
#: setup issues (see: https://stackoverflow.com/q/76872534/12171959)
&& apt-get install jing -y
RUN apt-get update && apt-get install -y default-mysql-client ant jq build-essential libffi-dev ruby ruby-bundler dos2unix coreutils curl tzdata git gcc cmake libpng-dev graphviz wkhtmltopdf pandoc rsync poppler-utils pkg-config
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN git clone --recursive https://github.com/kornelski/pngquant.git
RUN cd pngquant && cargo build --release
RUN apt-get update && apt-get install -y texlive-xetex
RUN gem install docsplit
ENV TZ=Europe/Berlin
RUN apt-get install -y file
RUN apt-get install -y vim
COPY . /src
WORKDIR /src
#RUN wget https://github.com/jgm/pandoc/releases/download/2.5/pandoc-2.5-linux.tar.gz
#RUN tar -zxf pandoc-2.5-linux.tar.gz
#RUN cp -R pandoc-2.5/bin/* /usr/bin/
# && tar -zxf pandoc-2.9.2.1-linux-amd64.tar.gz
RUN git clone https://gitlab.com/Tech4Comp/tmitocar-tools.git/ tmitocar
RUN chmod -R 777 tmitocar
RUN dos2unix tmitocar/tmitocar.sh
RUN dos2unix tmitocar/feedback.sh
RUN chmod +x /src/docker-entrypoint.sh
RUN dos2unix /src/docker-entrypoint.sh
RUN dos2unix /src/gradle.properties
RUN dos2unix gradlew
RUN chmod +x gradlew && ./gradlew build --exclude-task test
EXPOSE $LAS2PEER_PORT
ENTRYPOINT ["/src/docker-entrypoint.sh"]