split base build to multiple dockerfiles.

This commit is contained in:
Miroslav Šedivý
2024-09-08 17:21:09 +02:00
parent bbefb393f8
commit 38e8ac3e21
79 changed files with 455 additions and 968 deletions
-1
View File
@@ -1 +0,0 @@
VUE_APP_SERVER_PORT=3000
+7 -1
View File
@@ -1,4 +1,6 @@
FROM node:18-bullseye-slim as client
ARG BASE_IMAGE=node:18-bullseye-slim
FROM $BASE_IMAGE AS client
WORKDIR /src
#
@@ -10,3 +12,7 @@ RUN npm install
# build client
COPY . .
RUN npm run build
#
# artifacts from this stage
# COPY --from=client /src/dist/ /var/www