From 2c54dd52cd9b501a9efd50217fdfbc530729aa87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Fri, 27 Oct 2023 02:12:31 +0200 Subject: [PATCH] main Dockerfile fixup (node version, libmagic) --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9fd9515..317d94a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # build ui # ############ -FROM node:20.8 AS build-ui +FROM node:lts AS build-ui # env setup WORKDIR /usr/local/src/ovdashboard_ui @@ -32,12 +32,18 @@ ENV \ MODULE_NAME="ovdashboard_api.app" EXPOSE 8000 -# install ovdashboard_api COPY api ./ RUN set -ex; \ + # install libs + export DEBIAN_FRONTEND=noninteractive; \ + apt-get update; apt-get install --yes --no-install-recommends \ + libmagic1 \ + ; rm -rf /var/lib/apt/lists/*; \ + \ # remove example app rm -rf /app; \ \ + # install ovdashboard_api python -m pip --no-cache-dir install ./ # run as unprivileged user