Skip to content

Commit 8f89675

Browse files
authored
Update Dockerfile echoesian#2
1 parent 7ccc62b commit 8f89675

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# setup working directory
22
FROM maven:3.5.3 AS build
3-
#RUN mkdir /app
4-
WORKDIR /java-webapp-docker
3+
RUN mkdir /app
4+
WORKDIR /app
55

66
# maven build
7-
COPY src /java-webapp-docker/src
8-
COPY pom.xml /java-webapp-docker
7+
COPY src /app/src
8+
COPY pom.xml /app
99
RUN mvn -f /app/pom.xml clean package
1010

1111
# deploy to tomcat server

0 commit comments

Comments
 (0)