-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.win
30 lines (21 loc) · 920 Bytes
/
Dockerfile.win
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
FROM openjdk:8-nanoserver-1809
LABEL maintainer="kevin.lee@microfocus.com"
# Add a volume pointing to C:\Data
VOLUME C:\\data
# Make port 8080 available to the world outside this container
EXPOSE 8080
# Location of WebInspect RuntTime Agent - comment out if not required
#ARG WI_AGENT_DIR=/installs/Fortify_WebInspect_Runtime_Agent_Java_21.3.1/
# The application's jar file
ARG JAR_FILE=target/iwa.jar
# Copy Fortify WebInspect Runtime Agent directory to the container - comment out if not required
#COPY ${WI_AGENT_DIR} /wirtagent
# Copy the application's jar to the container
COPY ${JAR_FILE} app.jar
# JAVA_OPTS to be passed in
ENV JAVA_OPTS="-Xmx512m -Xss256k"
# Run the jar file
# Uncomment if not using WebInspect Agent
ENTRYPOINT ["cmd","/c","java -jar C:\\app.jar"]
# Comment out if using WebInspect Agent
#ENTRYPOINT ["cmd","/c","java -javaagent:C:\\wirtagent\\lib\\FortifyAgent.jar -jar C:\\app.jar"]