Set frontend API URL at build time. #18
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ FROM node:20-alpine AS build-env
|
|||
COPY . /app/
|
||||
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
|
||||
WORKDIR /app
|
||||
ENV VITE_API_URL=https://tasks.tiramisu.one
|
||||
RUN npm run build
|
||||
|
||||
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=build-env /app/build /app/build
|
||||
WORKDIR /app
|
||||
CMD ["npm", "run", "start"]
|
||||
CMD ["npm", "run", "start"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue