Improved dockerfile client builder

This commit is contained in:
Donkie
2023-08-08 21:32:07 +02:00
parent 6ca18b8f94
commit c6de1c403a

View File

@@ -2,9 +2,9 @@ FROM node:16-alpine as client-builder
COPY ./client /client
WORKDIR /client
RUN npm install
RUN npm ci
RUN echo "VITE_APIURL=/api/v1" > .env.production
RUN rm -f .env && echo "VITE_APIURL=/api/v1" > .env.production
RUN npm run build
FROM python:3.11-alpine as python-builder