forked from fosslight/fosslight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 705 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 705 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
#Copyright (C) Sameer1046
#SPDX-License-Identifier: AGPL-3.0-only
#Build the image from source
FROM gradle:6.8.2-jdk8 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build --no-daemon --exclude-task test
#Create the containerized app
FROM openjdk:8-jre-alpine
LABEL maintainer="FOSSLight <fosslight-dev@lge.com>"
COPY --from=build /home/gradle/src/build/libs/*.war /app/FOSSLight.war
COPY ./verify/verify /app/verify/verify
COPY ./db/wait-for /app/wait-for
RUN chmod +x /app/wait-for
RUN chmod +x /app/verify/verify
RUN apk update && apk add bash
WORKDIR /app
CMD ["java" , "-jar", "FOSSLight.war", "--root.dir=/data/fosslight", "--server.port=8180"]