FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
device-detection-java/Dockerfile.example at main · 51Degrees/device-detection-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
51Degrees
/
device-detection-java
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
device-detection-java
/
Dockerfile.example
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (18 loc) · 1019 Bytes
Breadcrumbs
device-detection-java
/
Dockerfile.example
Copy path
File metadata and controls
23 lines (18 loc) · 1019 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:16.04 AS build
RUN apt-get update && apt-get -y upgrade && apt-get -y install curl build-essential openjdk-8-jdk git && rm -rf /var/lib/apt/lists/*
ARG BUILD_CMAKE_VERSION=3.31.6
RUN mkdir -p /opt/cmake \
&& curl -fsSL "https://github.com/Kitware/CMake/releases/download/v$BUILD_CMAKE_VERSION/cmake-$BUILD_CMAKE_VERSION-linux-$(uname -m).tar.gz" \
| tar -xzC /opt/cmake --strip-components=1 \
&& ln -sf /opt/cmake/bin/* /usr/local/bin/
ARG BUILD_MAVEN_VERSION=3.9.9
RUN mkdir -p /opt/maven \
&& curl -fsSL "https://dlcdn.apache.org/maven/maven-3/$BUILD_MAVEN_VERSION/binaries/apache-maven-$BUILD_MAVEN_VERSION-bin.tar.gz" \
| tar -xzC /opt/maven --strip-components=1 \
&& ln -sf /opt/maven/bin/* /usr/local/bin/
COPY . /src
WORKDIR /src
RUN mvn -B versions:set -DnewVersion="$(git describe --tags)" \
&& JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture) mvn -B install -f pom.xml -DXmx2048m -DskipTests -DfailIfNoTests=false
FROM scratch
COPY --from=build /src/*/target/*.jar /
Back
|
FazBrowse Home
|
New Git URL