Merge pull request #884 from jellyfin/fix-docker

fix(docker): fix dockerfile not building the SSR version properly
This commit is contained in:
Julien Machiels
2021-03-15 13:14:01 +01:00
committed by GitHub
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
run: npm ci --no-audit
- name: Build client
run: npm run build --production --standalone
run: 'npm run build:standalone'
- name: Configure QEMU
uses: docker/setup-qemu-action@v1
+1 -1
View File
@@ -44,7 +44,7 @@ jobs:
run: npm ci --no-audit
- name: Build client
run: npm run build --production --standalone
run: 'npm run build:standalone'
- name: Configure QEMU
uses: docker/setup-qemu-action@v1
+1 -2
View File
@@ -13,8 +13,7 @@ COPY . .
RUN npm ci --no-audit
# Build SSR app for production in standalone mode
RUN npm run build --production --standalone
RUN npm run build:standalone
# Build final image
FROM node:14-alpine
+1 -1
View File
@@ -94,7 +94,7 @@ When using the SSR version of the client, you can run the client in standalone m
$ npm install
# build for production in standalone mode, with server-side rendering
$ npm run build --standalone
$ npm run build:standalone
# move the server and required files to a dedicated directory
$ mkdir -p /opt/jellyfin-vue
+1
View File
@@ -7,6 +7,7 @@
"dev": "NUXT_SSR=1 nuxt",
"dev:static": "nuxt",
"build": "NUXT_SSR=1 nuxt build",
"build:standalone": "NUXT_SSR=1 nuxt build --standalone",
"build:static": "nuxt build",
"prod": "npm run build && npm run start",
"prod:static": "npm run build:static && npm run start:static",