-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
72 lines (58 loc) · 2.16 KB
/
Copy pathDockerfile
File metadata and controls
72 lines (58 loc) · 2.16 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM debian:bullseye
RUN apt-get update && \
apt-get install -y \
curl \
gnupg \
gnupg1 \
gnupg2 \
python3 \
python3-dev \
virtualenv \
build-essential \
git \
wget \
rsync \
python3-pip \
entr \
binutils \
libproj-dev \
gdal-bin \
zip \
postgresql-client \
&& apt clean
# https://github.com/nodesource/distributions/blob/master/README.md#deb
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && apt-get install -y nodejs
RUN curl -o /usr/local/bin/circleci \
https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci && \
chmod +x /usr/local/bin/circleci
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" > \
/etc/apt/sources.list.d/yarn.list
RUN apt-get update && \
apt-get install -y \
yarn \
&& apt clean
RUN pip3 install pip-tools
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt
ENV HUB_VERSION=2.14.2
RUN wget https://github.com/github/hub/releases/download/v${HUB_VERSION}/hub-linux-amd64-${HUB_VERSION}.tgz && \
tar -xf hub-linux-amd64-${HUB_VERSION}.tgz && \
./hub-linux-amd64-${HUB_VERSION}/install && \
rm hub-linux-amd64-${HUB_VERSION}.tgz && \
rm -r hub-linux-amd64-${HUB_VERSION}
ENV MDBOOK_VERSION=0.4.28
RUN wget https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz && \
tar -xf mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz && \
rm mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz && \
mv mdbook /usr/local/bin
ENV TXCLI_VERSION=1.6.7
RUN wget https://github.com/transifex/cli/releases/download/v${TXCLI_VERSION}/tx-linux-amd64.tar.gz && \
tar -xf tx-linux-amd64.tar.gz && \
rm tx-linux-amd64.tar.gz && \
mv tx /usr/local/bin
# seems to be needed for the "python-magic" package which is an indirect karrot dependency
RUN apt-get update && \
apt-get install -y \
libmagic1 \
&& apt clean