forked from scalableminds/webknossos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
32 lines (27 loc) · 1.03 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
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 -
# Install sbt, node & build-essentials
RUN apt-get update \
&& apt-get install -y \
build-essential \
findutils \
nodejs \
postgresql-client \
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/*
# Enable corepack for Node (which will install yarn)
RUN corepack enable && corepack install --global yarn@4.4.1