-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the wrong position of the environment variable declaration. Updated comments.
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# The base image to build. Define the context name for the build stage. | ||
FROM eclipse-temurin:21-jdk-alpine as builder | ||
|
||
# The Node.JS build work directory. | ||
# The Node.js version to install. | ||
ENV NODE_PACKAGE_URL https://unofficial-builds.nodejs.org/download/release/v20.13.1/node-v20.13.1-linux-x64-musl.tar.gz | ||
|
||
# Install Node.JS and NPM. | ||
RUN apk add libstdc++ | ||
|
||
WORKDIR /opt | ||
|
||
RUN wget $NODE_PACKAGE_URL | ||
RUN mkdir -p /opt/nodejs | ||
RUN tar -zxvf *.tar.gz --directory /opt/nodejs --strip-components=1 | ||
|
@@ -15,9 +20,6 @@ RUN npm install -g [email protected] | |
# The build work directory. | ||
WORKDIR /opt/app | ||
|
||
# The Node.js version to install. | ||
ENV NODE_PACKAGE_URL https://unofficial-builds.nodejs.org/download/release/v20.13.1/node-v20.13.1-linux-x64-musl.tar.gz | ||
|
||
# Copy the source code into the Docker image to be used for compiling. | ||
COPY .mvn/ .mvn | ||
COPY mvnw pom.xml ./ | ||
|