split Dockerfile, dynamic backend URL
This commit is contained in:
parent
8d09663eff
commit
3d69f592f6
15 changed files with 75 additions and 60 deletions
13
tank-frontend/Dockerfile
Normal file
13
tank-frontend/Dockerfile
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue