-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (32 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
42 lines (32 loc) · 806 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
30
31
32
33
34
35
36
37
38
39
40
41
############################
### Base for build image ###
############################
FROM maven:latest AS build
MAINTAINER Felix Klauke <[email protected]>
######################
### Copy all files ###
######################
COPY . .
################
### Build it ###
################
RUN mvn clean install package
########################
### Base for runtime ###
########################
FROM openjdk:8 AS runtime
###############
### Workdir ###
###############
WORKDIR /opt/app
###################
### Environment ###
###################
ENV HEIMDALL_SERVER_HOST=0.0.0.0
ENV HEIMDALL_SERVER_PORT=8080
###################
### Copy server ###
###################
COPY --from=build server/target/heimdall-server.jar /opt/app/server.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "server.jar" ]