Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Fixed the wrong position of the environment variable declaration. Updated comments.
  • Loading branch information
nhkhai committed May 12, 2024
1 parent e4e0f5d commit 6c54488
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
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
Expand All @@ -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 ./
Expand Down

0 comments on commit 6c54488

Please sign in to comment.