Update Dockerfile

This commit is contained in:
Shiny Nematoda 2022-08-06 10:55:50 +00:00
parent 6f4466a6fb
commit 60167e45a7
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
3 changed files with 16 additions and 5 deletions

View file

@ -1,9 +1,16 @@
FROM node:alpine AS build
ARG api
ARG pipedapi
WORKDIR /app/
COPY . .
RUN sed -i "s/hyperpipeapi.onrender.com/$api/g" src/scripts/fetch.js src/components/Prefs.vue
RUN sed -i "s/pipedapi.kavin.rocks/$pipedapi/g" src/scripts/fetch.js src/components/Prefs.vue
RUN npm install && \
npm run build