Skip to content

Commit

Permalink
修改dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dushixiang committed Nov 6, 2021
1 parent 06676cd commit e966d90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ build/
### VS Code ###
.vscode/

dashboard/.idea
dashboard/*.iml
dashboard/node_modules

/data/
/logs/
/screenshot/
Expand Down
7 changes: 4 additions & 3 deletions docker/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ FROM maven:3.8.3-jdk-11 AS build

WORKDIR /app

COPY ../src .
COPY ../pom.xml .
COPY ../LICENSE .
COPY src src
COPY pom.xml pom.xml
COPY LICENSE LICENSE

RUN mvn -f pom.xml clean package -Dmaven.test.skip=true


Expand Down
9 changes: 9 additions & 0 deletions base.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.github
.idea
data
logs
screenshot
target
src/main/web/node_modules/
base.dockerignore
README.MD

0 comments on commit e966d90

Please sign in to comment.