-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (28 loc) · 1.18 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
# Copyright (C) 2019 Atos Spain SA. All rights reserved.
#
# This file is part of the HAPI FHIR JPASERVER OAUTH.
#
# This file is free software: you can redistribute it and/or modify it under the
# terms of the Apache License, Version 2.0 (the License);
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# The software is provided "AS IS", without any warranty of any kind, express or implied,
# including but not limited to the warranties of merchantability, fitness for a particular
# purpose and noninfringement, in no event shall the authors or copyright holders be
# liable for any claim, damages or other liability, whether in action of contract, tort or
# otherwise, arising from, out of or in connection with the software or the use or other
# dealings in the software.
#
# See README file for the full disclaimer information and LICENSE file for full license
# information in the project root.
FROM maven:3.6.0-jdk-11 as builder
WORKDIR /code
COPY pom.xml .
RUN mvn dependency:resolve
COPY src ./src
RUN mvn package -Dmaven.test.skip=true
FROM jetty:9.4-jre11 as runner
USER jetty:jetty
COPY --from=builder /code/target/hapi-fhir-jpaserver-oauth.war /var/lib/jetty/webapps/root.war
EXPOSE 8080