Skip to content

Commit c6715b0

Browse files
committed
OPHYK-212 Build frontend into jar resources
1 parent 8dce67b commit c6715b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
FROM gradle:8.11-jdk21-corretto AS build
22
WORKDIR /app
33

4+
RUN dnf install -y nodejs20 \
5+
&& alternatives --install /usr/bin/node node /usr/bin/node-20 90 \
6+
&& alternatives --install /usr/bin/npm npm /usr/bin/npm-20 90 \
7+
&& alternatives --install /usr/bin/npx npx /usr/bin/npx-20 90
8+
9+
COPY organisaatio-ui ./organisaatio-ui
10+
WORKDIR /app/organisaatio-ui
11+
RUN npm ci
12+
RUN npm run build
13+
14+
WORKDIR /app
415
COPY github-packages-gradle.properties /opt/gradle/gradle.properties
516
COPY ytj-client ./ytj-client
617
COPY organisaatio-api ./organisaatio-api

0 commit comments

Comments
 (0)