diff --git a/.dockerignore b/.dockerignore index b0c745e9..cce7d3ac 100644 --- a/.dockerignore +++ b/.dockerignore @@ -26,6 +26,8 @@ yarn-debug.log* yarn-error.log* package-lock.json yarn.lock +**/package-lock.json +**/yarn.lock # Build artifacts target/ diff --git a/Dockerfile b/Dockerfile index 690b8257..a4f92892 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ COPY examples/basicauthentication/pom.xml /app/pom.xml COPY examples/basicauthentication/src /app/src COPY examples/basicauthentication/ui.resources /app/ui.resources +# Remove old lock files to avoid npm warnings +RUN rm -f /app/ui.resources/package-lock.json /app/ui.resources/yarn.lock + # Build the Java application (skip frontend build for now) RUN mvn clean package -DskipTests