forked from scalableminds/webknossos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
34 lines (29 loc) · 1.12 KB
/
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
FROM scalableminds/sbt:master__7830403826
ARG VERSION_NODE="18.x"
ENV DEBIAN_FRONTEND noninteractive
ENV SBT_OPTS "${SBT_OPTS} -XX:MaxMetaspaceSize=512m -Xms1024m -Xmx1024m"
# Fixes "The method driver /usr/lib/apt/methods/https could not be found."
# See https://unix.stackexchange.com/a/478009
RUN apt-get update && apt-get install apt-transport-https
# add node package source
RUN curl -sL "https://deb.nodesource.com/setup_${VERSION_NODE}" | bash -
# add yarn package source
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
# Install sbt, node & build-essentials
RUN apt-get update \
&& apt-get install -y \
build-essential \
findutils \
nodejs \
postgresql-client \
yarn \
cmake \
git \
libdraco-dev \
libblosc1 \
# The following packages are necessary to run headless-gl
&& apt-get install -y \
mesa-utils xvfb libgl1-mesa-dri libglapi-mesa libosmesa6 pkg-config x11proto-xext-dev xserver-xorg-dev libxext-dev libxi-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*