Skip to content

Commit

Permalink
Merge pull request #884 from jellyfin/fix-docker
Browse files Browse the repository at this point in the history
fix(docker): fix dockerfile not building the SSR version properly
  • Loading branch information
heyhippari committed Mar 15, 2021
2 parents d343271 + 903ac67 commit 76d2dee
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 76d2dee

Please sign in to comment.