[FEAT] ready to generate production

This commit is contained in:
Edouard DUPIN 2024-09-16 00:05:53 +02:00
parent 5eba6d32b6
commit 3f96b870a0
2 changed files with 16 additions and 8 deletions

View File

@ -3,14 +3,21 @@
## buyilding-end install applications:
##
######################################################################################
FROM archlinux:base-devel AS builder
FROM archlinux:base-devel AS common
# update system
RUN pacman -Syu --noconfirm && pacman-db-upgrade \
&& pacman -S --noconfirm jdk-openjdk maven npm pnpm \
&& pacman -S --noconfirm jdk-openjdk \
&& pacman -Scc --noconfirm
WORKDIR /tmp
FROM common AS builder
# update system
RUN pacman -Syu --noconfirm && pacman-db-upgrade \
&& pacman -S --noconfirm maven npm pnpm \
&& pacman -Scc --noconfirm
ENV PATH /tmp/node_modules/.bin:$PATH
WORKDIR /tmp
######################################################################################
##
@ -73,9 +80,10 @@ RUN pnpm static:build
##
######################################################################################
FROM bellsoft/liberica-openjdk-alpine:latest
# add wget to manage the health check...
RUN apk add --no-cache wget
#FROM bellsoft/liberica-openjdk-alpine:latest
## add wget to manage the health check...
#RUN apk add --no-cache wget
FROM common
#FROM archlinux:base
#RUN pacman -Syu --noconfirm && pacman-db-upgrade
@ -86,7 +94,7 @@ RUN apk add --no-cache wget
## clean all the caches Need only on the release environment
#RUN pacman -Scc --noconfirm
ENV LANG=C.UTF-8
ENV LANG C.UTF-8
COPY --from=build_back /tmp/out/maven/*.jar /application/application.jar
COPY --from=build_front /tmp/dist /application/front/

View File

@ -1,2 +1,2 @@
# URL for database connection
VITE_API_BASE_URL=api/
VITE_API_BASE_URL=karusic/api/