Skip to content

Commit ce5c7bb

Browse files
authored
Merge pull request #29 from JAQStack/dockerfile-updates
fix: Remove old lock files to prevent npm build hanging
2 parents 6ae94f1 + 81f2703 commit ce5c7bb

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎.dockerignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ yarn-debug.log*
2626
yarn-error.log*
2727
package-lock.json
2828
yarn.lock
29+
**/package-lock.json
30+
**/yarn.lock
2931

3032
# Build artifacts
3133
target/

‎Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ COPY examples/basicauthentication/pom.xml /app/pom.xml
1717
COPY examples/basicauthentication/src /app/src
1818
COPY examples/basicauthentication/ui.resources /app/ui.resources
1919

20+
# Remove old lock files to avoid npm warnings
21+
RUN rm -f /app/ui.resources/package-lock.json /app/ui.resources/yarn.lock
22+
2023
# Build the Java application (skip frontend build for now)
2124
RUN mvn clean package -DskipTests
2225

0 commit comments

Comments
 (0)