main Dockerfile fixup (node version, libmagic)

This commit is contained in:
Jörn-Michael Miehe 2023-10-27 02:12:31 +02:00
parent a51053abe7
commit 2c54dd52cd

View file

@ -2,7 +2,7 @@
# build ui # # build ui #
############ ############
FROM node:20.8 AS build-ui FROM node:lts AS build-ui
# env setup # env setup
WORKDIR /usr/local/src/ovdashboard_ui WORKDIR /usr/local/src/ovdashboard_ui
@ -32,12 +32,18 @@ ENV \
MODULE_NAME="ovdashboard_api.app" MODULE_NAME="ovdashboard_api.app"
EXPOSE 8000 EXPOSE 8000
# install ovdashboard_api
COPY api ./ COPY api ./
RUN set -ex; \ 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 # remove example app
rm -rf /app; \ rm -rf /app; \
\ \
# install ovdashboard_api
python -m pip --no-cache-dir install ./ python -m pip --no-cache-dir install ./
# run as unprivileged user # run as unprivileged user