Skip to content

Commit 2579f04

Browse files
authoredJul 3, 2024
Enable dashboard in dev build (#777)
1 parent 8d404ab commit 2579f04

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed
 

‎Dockerfile.dev

+17-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM python:3.11-slim-bullseye
33
# Set shell
44
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
55

6-
WORKDIR /app
7-
86
RUN \
97
set -x \
108
&& apt-get update \
@@ -17,19 +15,34 @@ RUN \
1715
unzip \
1816
libcairo2 \
1917
gdb \
20-
&& apt-get purge -y --auto-remove \
18+
curl
19+
20+
RUN \
21+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash \
22+
&& export NVM_DIR="$HOME/.nvm" \
23+
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
24+
&& nvm install 18
25+
26+
RUN \
27+
apt-get purge -y --auto-remove \
2128
&& rm -rf \
2229
/var/lib/apt/lists/* \
2330
/usr/src/*
2431

32+
WORKDIR /app
2533
COPY . ./
2634

35+
WORKDIR /app/dashboard/script
36+
RUN ./setup
37+
RUN ./build
38+
39+
WORKDIR /app
40+
2741
# hadolint ignore=DL3013
2842
RUN \
2943
pip3 install -U pip && \
3044
pip3 install --no-cache-dir .[server]
3145

3246
VOLUME ["/data"]
3347
EXPOSE 5580
34-
3548
ENTRYPOINT ["./docker-entrypoint.sh"]

0 commit comments

Comments
 (0)