mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-27 20:58:01 +02:00
Update Dockerfile
This commit is contained in:
parent
6f4466a6fb
commit
60167e45a7
3 changed files with 16 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -3,7 +3,11 @@ version: '3'
|
|||
services:
|
||||
hyperpipe-frontend:
|
||||
image: hyperpipe-frontend
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
pipedapi: pipedapi.kavin.rocks
|
||||
api: hyperpipeapi.onrender.com
|
||||
container_name: hyperpipe-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
|
|
@ -327,7 +327,10 @@ onMounted(() => {
|
|||
</template>
|
||||
|
||||
<header v-if="!artist.state.title">
|
||||
<div v-show="data.state.art" class="art bg-img"></div>
|
||||
<div
|
||||
v-show="data.state.art"
|
||||
class="art bg-img"
|
||||
:style="'--art: url(' + data.state.art + ')'"></div>
|
||||
|
||||
<div class="wrapper">
|
||||
<NowPlaying @get-artist="getArtist" />
|
||||
|
@ -400,9 +403,6 @@ header {
|
|||
height: 175px;
|
||||
width: 175px;
|
||||
}
|
||||
.bg-img {
|
||||
--art: v-bind('"url(" + data.state.art + ")"');
|
||||
}
|
||||
img,
|
||||
.card,
|
||||
.card-bg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue