-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
56 lines (37 loc) · 1.59 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
45
46
47
48
49
50
51
52
53
54
55
56
#*******************************************************************************
# Copyright (C) 2021-2022 CERTH
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#*******************************************************************************
FROM ubuntu:18.04
RUN apt-get update && apt-get install default-jdk -y
RUN apt-get update && apt-get install cppcheck -y
RUN apt install maven -y
RUN apt-get install curl -y
ENV PATH="/opt/node-v14.17.1-linux-x64/bin:${PATH}"
RUN curl https://nodejs.org/dist/v14.17.1/node-v14.17.1-linux-x64.tar.gz |tar xzf - -C /opt/
WORKDIR /opt/app
ENV HOME=/opt/app
RUN apt install wget -y
RUN wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.30.0/pmd-bin-6.30.0.zip -P /opt/app
RUN apt-get install unzip -y
RUN chmod -R 777 /opt/app
RUN chmod -R 700 /opt/app/pmd-bin-6.30.0.zip
RUN unzip pmd-bin-6.30.0.zip -d /opt/app/
RUN chmod -R 700 /opt/app/pmd-bin-6.30.0/
RUN wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip -P /opt/app
RUN unzip sonar-scanner-cli-4.7.0.2747-linux.zip -d /opt/app
ADD CppRules /opt/resources/CppRules
ADD Rulesets /opt/resources/Rulesets
#/ADD sonar-scanner-cli-4.7.0.2747-linux /opt/app
#/ADD pmd-bin-6.30.0 /opt/app
#/bin/bash
ENV PATH="/opt/app/sonar-scanner-4.7.0.2747-linux/bin:${PATH}"
RUN pwd
COPY target/Theia-BackEnd-0.0.1-SNAPSHOT.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]
EXPOSE 8080