Skip to content

Commit f7e902b

Browse files
committed
Optimize Dockerfile
1 parent da71d5c commit f7e902b

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ RUN apt-get update \
55

66
WORKDIR /aspose-barcode-cloud-java
77

8-
# Resolve some dependencies
9-
# Due to https://issues.apache.org/jira/browse/MDEP-82
10-
# MVN can't resolve ALL dependencies before build
11-
COPY ./pom.xml .
12-
RUN mvn dependency:go-offline -B
13-
14-
# Build the package
158
COPY . .
16-
RUN mvn clean install -Dmaven.test.skip=true
179

18-
# Publish package
19-
ENTRYPOINT ["mvn", "deploy"]
10+
ENTRYPOINT ["mvn", "deploy", "-Dmaven.test.skip=true"]

0 commit comments

Comments
 (0)