jellyfin-vue/Dockerfile.static
2021-01-29 16:50:29 -07:00

26 lines
522 B
Docker

FROM node:12-alpine AS build
# Install build dependencies for node modules
RUN apk add git python make g++
# Set workdir
WORKDIR /app
# Copy package.json and yarn.lock
COPY package.json yarn.lock ./
# Install dependencies
RUN yarn install
# Copy resources
COPY . .
# 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