mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-14 01:18:49 +00:00
26 lines
522 B
Docker
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
|