jellyfin-vue/Dockerfile

24 lines
414 B
Docker
Raw Normal View History

2020-09-12 13:50:21 +02:00
FROM node:13-alpine AS build
2020-09-12 16:58:06 +02:00
# Install build dependencies for node modules
2020-09-12 13:50:21 +02:00
RUN apk add git python make g++
# Set workdir
WORKDIR /app
# Add package.json and yarn.lock
ADD package.json yarn.lock ./
# Install dependencies
RUN yarn install
# Copy resources
ADD . .
# Build static site
RUN yarn generate
2020-09-12 16:58:06 +02:00
# Deploy built distribution to nginx
2020-09-12 16:54:05 +02:00
FROM nginx:alpine
2020-09-12 13:50:21 +02:00
COPY --from=build /app/dist/ /usr/share/nginx/html/