forked from girder/girder
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 866 Bytes
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 866 Bytes
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
FROM ubuntu:22.04
LABEL maintainer="Kitware, Inc. <kitware@kitware.com>"
ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LC_ALL=C.UTF-8
RUN apt-get update && apt-get install -qy \
gcc \
libpython3-dev \
git \
libldap2-dev \
libsasl2-dev \
python3-pip \
curl \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& python3 -m pip install --upgrade --no-cache-dir \
pip \
setuptools \
setuptools_scm \
wheel
RUN curl -LJ https://github.com/krallin/tini/releases/download/v0.19.0/tini -o /sbin/tini && \
chmod +x /sbin/tini
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -qy nodejs
RUN mkdir /girder
COPY . /girder/
RUN cd /girder/girder/web && npm i && npm run build
RUN pip install -e /girder
EXPOSE 8080
ENTRYPOINT ["/sbin/tini", "--", "girder", "serve"]