forked from dka23/gitlab-github-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 734 Bytes
/
Dockerfile
File metadata and controls
29 lines (19 loc) · 734 Bytes
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
FROM anapsix/alpine-java:8_jdk_unlimited as builder
WORKDIR /src
# install maven
RUN wget http://mirrors.ocf.berkeley.edu/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz \
&& tar zxvf apache-maven-3.3.9-bin.tar.gz \
&& rm -f apache-maven-3.3.9-bin.tar.gz
COPY . ./
# start with spring boot
RUN apache-maven-3.3.9/bin/mvn package
##################
FROM anapsix/alpine-java:8_jdk_unlimited
WORKDIR /app
USER nobody
# install dumb-init; helps dockerized java handle signals properly
# using ADD avoids installing openssl dependency
COPY --from=builder /src/target/glghproxy-0.0.1-SNAPSHOT.war /app/glfhproxy.war
EXPOSE 8080
# start with spring boot
CMD java -jar glfhproxy.war -DgitlabUrl="$GITLAB_URL"