forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
40 lines (30 loc) · 946 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
39
40
FROM ubuntu:20.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
build-essential \
cmake \
autoconf \
python3 \
nodejs \
default-jre \
libtool \
curl \
git-core \
zip
WORKDIR /opt
RUN git clone https://github.com/emscripten-core/emsdk.git
WORKDIR /opt/emsdk
# Emscripten's version selection / activation was flaky the last time I tried it, but
# leaving this variable in place in case it's ever possible to resurrect it.
# In that case, replace "latest" below with "${EMSCRIPTEN_V}".
ARG EMSCRIPTEN_V
RUN ./emsdk install ${EMSCRIPTEN_V}
RUN ./emsdk activate ${EMSCRIPTEN_V}
RUN git config --global user.name 'Nobody'
RUN git config --global user.email '[email protected]'
RUN mkdir /opt/gdaljs
WORKDIR /opt
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
WORKDIR /opt/gdaljs
RUN git config --global --add safe.directory /opt/gdaljs
ENTRYPOINT ["/opt/entrypoint.sh"]