From a265038bf6e8bf56ce7c6a98d58337ae436028af Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 5 Sep 2022 16:42:10 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 255b45f88..65d49570c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,36 +1,47 @@ -FROM node:16-alpine AS base -LABEL org.opencontainers.image.title "Homepage" -LABEL org.opencontainers.image.description "A self-hosted services landing page, with docker and service integrations." -LABEL org.opencontainers.image.url="https://github.com/benphelps/homepage" -LABEL org.opencontainers.image.documentation='https://github.com/benphelps/homepage/wiki' -LABEL org.opencontainers.image.source='https://github.com/benphelps/homepage' -LABEL org.opencontainers.image.licenses='Apache-2.0' +# syntax = docker/dockerfile:latest # Install dependencies only when needed FROM node:16-alpine AS deps -RUN apk add --no-cache libc6-compat -RUN apk add --no-cache --virtual .gyp python3 make g++ + WORKDIR /app + COPY package.json pnpm-lock.yaml* ./ -RUN yarn global add pnpm -RUN pnpm install -RUN apk del .gyp + +RUN <