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: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Use OpenJDK 11 JDK as base image (needed for compilation)
FROM openjdk:11-jdk-slim
# Use Node.js 18 as base image, then add Java
FROM node:18-slim

# Set working directory
WORKDIR /app

# Install Maven, Node.js, and Yarn
# Install Java 11 JDK and Maven
RUN apt-get update && \
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 @angular/cli && \
apt-get install -y openjdk-11-jdk maven && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Install Yarn and Angular CLI globally
RUN npm install -g yarn @angular/cli

# Copy Maven files first for better caching
COPY examples/basicauthentication/pom.xml /app/pom.xml

Expand Down
Loading