-
Notifications
You must be signed in to change notification settings - Fork 79
/
Dockerfile.dev
48 lines (39 loc) · 936 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM python:3.11-slim-bullseye
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libuv1 \
zlib1g \
libjson-c5 \
libnl-3-200 \
libnl-route-3-200 \
unzip \
libcairo2 \
gdb \
curl
RUN \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash \
&& export NVM_DIR="$HOME/.nvm" \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& nvm install 18
RUN \
apt-get purge -y --auto-remove \
&& rm -rf \
/var/lib/apt/lists/* \
/usr/src/*
WORKDIR /app
COPY . ./
WORKDIR /app/dashboard/script
RUN ./setup
RUN ./build
WORKDIR /app
# hadolint ignore=DL3013
RUN \
pip3 install -U pip && \
pip3 install --no-cache-dir .[server]
VOLUME ["/data"]
EXPOSE 5580
ENTRYPOINT ["./docker-entrypoint.sh"]