Set frontend API URL at build time. (#18)
All checks were successful
Check / Backend (push) Successful in 6m3s
Check / Frontend (push) Successful in 1m56s
Docker Build / Build and Push Backend Image (push) Successful in 12m36s
Docker Build / Build and Push Frontend Image (push) Successful in 5m22s

Reviewed-on: #18
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
Drew 2025-10-21 04:08:53 +00:00 committed by Drew
parent ef609f748d
commit 69f4a6f1ca

View file

@ -12,6 +12,7 @@ FROM node:20-alpine AS build-env
COPY . /app/ COPY . /app/
COPY --from=development-dependencies-env /app/node_modules /app/node_modules COPY --from=development-dependencies-env /app/node_modules /app/node_modules
WORKDIR /app WORKDIR /app
ENV VITE_API_URL=https://tasks.tiramisu.one
RUN npm run build RUN npm run build
FROM node:20-alpine FROM node:20-alpine
@ -19,4 +20,4 @@ COPY ./package.json package-lock.json /app/
COPY --from=production-dependencies-env /app/node_modules /app/node_modules COPY --from=production-dependencies-env /app/node_modules /app/node_modules
COPY --from=build-env /app/build /app/build COPY --from=build-env /app/build /app/build
WORKDIR /app WORKDIR /app
CMD ["npm", "run", "start"] CMD ["npm", "run", "start"]