From ce1b720267a53210c4468c26b4e555f1ee2a62d1 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Tue, 28 May 2024 17:37:29 -0400 Subject: [PATCH] migrate docker container to alpine --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96358ed0..55442c43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12.2-bookworm as base +FROM python:3.12.3-alpine as base WORKDIR /opt/hyperglass ENV HYPERGLASS_APP_PATH=/etc/hyperglass ENV HYPERGLASS_HOST=0.0.0.0 @@ -12,8 +12,7 @@ COPY . . FROM base as ui WORKDIR /opt/hyperglass/hyperglass/ui -RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - -RUN apt-get install -y nodejs +RUN apk add build-base pkgconfig cairo-dev nodejs npm RUN npm install -g pnpm RUN pnpm install -P