mirror of
https://github.com/mruwnik/memory.git
synced 2025-06-28 15:14:45 +02:00
properly build frontend
This commit is contained in:
parent
f0d441ffe9
commit
a424c5f4d0
@ -24,6 +24,13 @@ WORKDIR /frontend
|
||||
COPY frontend/package*.json ./
|
||||
RUN npm install
|
||||
COPY frontend/ ./
|
||||
|
||||
# Set Vite environment variables for build from build args
|
||||
ARG SERVER_URL
|
||||
ARG SESSION_COOKIE_NAME
|
||||
ENV VITE_SERVER_URL=${SERVER_URL}
|
||||
ENV VITE_SESSION_COOKIE_NAME=${SESSION_COOKIE_NAME}
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Final stage
|
||||
|
Loading…
x
Reference in New Issue
Block a user