split Dockerfile, dynamic backend URL

This commit is contained in:
Vinzenz Schroeter 2024-04-21 14:34:45 +02:00
parent 8d09663eff
commit 3d69f592f6
15 changed files with 75 additions and 60 deletions

13
tank-frontend/Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM node:21-alpine AS build-client
WORKDIR /app
# dependencies
COPY package.json .
COPY package-lock.json .
RUN npm i
# build
env CONTAINERMODE 1
COPY . .
RUN npm run build