Skip to content

Commit

Permalink
Enable dashboard in dev build (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chapoly1305 authored Jul 3, 2024
1 parent 8d404ab commit 2579f04
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ FROM python:3.11-slim-bullseye
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

WORKDIR /app

RUN \
set -x \
&& apt-get update \
Expand All @@ -17,19 +15,34 @@ RUN \
unzip \
libcairo2 \
gdb \
&& apt-get purge -y --auto-remove \
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"]

0 comments on commit 2579f04

Please sign in to comment.