-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.local
More file actions
33 lines (25 loc) · 1.18 KB
/
Dockerfile.local
File metadata and controls
33 lines (25 loc) · 1.18 KB
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
# STAGE 1 compile and buid war
FROM maven:3.8.1-jdk-8 AS maven
WORKDIR /app
COPY src ./src
COPY pom.xml ./
# compilado del war
RUN mvn clean package
# STAGE 2 deploy war
FROM payara/micro:5.2022.5
USER root
RUN mkdir -p /mnt/volumes \
&& mkdir -p /mnt/volumes/vazurefileservice \
&& mkdir -p /mnt/volumes/vazurefileservice/prd/log \
&& mkdir -p /mnt/volumes/vazurefileservice/dev/log \
&& chown -R payara:payara /mnt/volumes \
&& apk add busybox-initscripts openrc curl
COPY container/cron-log-files /etc/periodic/cron-log-files
#USER payara
COPY --from=maven /app/target/azure-file-service-1.0.war $DEPLOY_DIR
COPY container/log4j.properties /opt/payara/log4j.properties
COPY container/entrypoint.sh /opt/payara/entrypoint.sh
#CMD ["--deploymentDir","/opt/payara/deployments", "--port", "8080", "--systemproperties", "log4j.properties"]
VOLUME /mnt/volumes/vazurefileservice
#docker build -f .\Dockerfile.local -t meza360/azure-file-service:latest .
#docker run -d -p 8080:8080 --mount type=volume,source=vazurefileservice,target=/mnt/volumes/vazurefileservice -e LOG_ROOT_PATH=/mnt/volumes/vazurefileservice/log -e DEPLOYMENT_ARCH=Container meza360/azure-file-service:latest