mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2026-09-03 05:10:26 +03:00
Merge pull request #884 from jellyfin/fix-docker
fix(docker): fix dockerfile not building the SSR version properly
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user