jellyfin-vue/Dockerfile.static
2021-02-24 01:00:49 +01:00

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