Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ FROM openjdk:11-jre-slim
# Set working directory
WORKDIR /app

# Install Maven
# Install Maven, Node.js, and Yarn
RUN apt-get update && \
apt-get install -y maven && \
apt-get install -y maven curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
npm install -g yarn && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -19,7 +22,12 @@ COPY examples/basicauthentication/src /app/src
# Copy UI resources
COPY examples/basicauthentication/ui.resources /app/ui.resources

# Build the application
# Build the Angular frontend first
WORKDIR /app/ui.resources
RUN yarn install && yarn build

# Go back to app directory and build the Java application
WORKDIR /app
RUN mvn clean package -DskipTests

# Expose port 8080
Expand Down
Loading