forked from girder/girder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (31 loc) · 868 Bytes
/
Dockerfile
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
FROM node:12-buster
LABEL maintainer="Kitware, Inc. <kitware@kitware.com>"
RUN apt-get update && apt-get install -qy \
gcc \
libpython3-dev \
git \
libldap2-dev \
libsasl2-dev \
python3-pip \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& python3 -m pip install --upgrade \
pip \
setuptools \
setuptools_scm \
wheel
# See http://click.pocoo.org/5/python3/#python-3-surrogate-handling for more detail on
# why this is necessary.
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
# See https://github.com/pypa/distutils/issues/17
ENV SETUPTOOLS_USE_DISTUTILS=stdlib
RUN mkdir /girder
WORKDIR /girder
COPY . /girder/
# Build girder wheel file, and install it
RUN python3 setup.py bdist_wheel \
&& cd dist && python3 -m pip install girder && cd .. \
&& rm -rf build dist
RUN girder build
EXPOSE 8080
ENTRYPOINT ["girder", "serve"]