mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-04 04:01:26 +00:00
25 lines
628 B
Docker
25 lines
628 B
Docker
## This dockerfile builds the client entirely in a Docker context
|
|
|
|
FROM node:14-alpine AS build
|
|
|
|
# Install build dependencies for node modules
|
|
RUN apk add --no-cache --virtual .build-deps git python make automake autoconf g++ libpng-dev libtool nasm file
|
|
|
|
# Set workdir
|
|
WORKDIR /app
|
|
|
|
# Copy files to workdir
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
# Build static site
|
|
RUN yarn build:static
|
|
|
|
# Deploy built distribution to nginx
|
|
FROM nginx:alpine
|
|
COPY --from=build /app/dist/ /usr/share/nginx/html/
|
|
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY .docker/mime.types /etc/nginx/mime.types
|