main Dockerfile fixup (node version, libmagic)
This commit is contained in:
parent
a51053abe7
commit
2c54dd52cd
1 changed files with 8 additions and 2 deletions
10
Dockerfile
10
Dockerfile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue