-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (26 loc) · 1019 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
FROM swift:5.2 AS build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
wget curl clang libblocksruntime-dev libxml2-dev \
libxml2 zlib1g-dev git python3.8 python3.8-dev libpython3.8-dev python3-pip \
pkg-config libatomic1 netcat-openbsd libfreetype6-dev
RUN wget https://github.com/Kitware/CMake/releases/download/v3.15.2/cmake-3.15.2.tar.gz \
&& apt-get remove --purge -y cmake \
&& tar -zxvf cmake-3.15.2.tar.gz \
&& rm cmake-3.15.2.tar.gz \
&& cd cmake-3.15.2 \
&& ./bootstrap \
&& make \
&& make install \
&& cmake --version
RUN git clone https://github.com/yonaskolb/Mint.git && cd Mint && swift run mint install yonaskolb/mint
RUN mint install nicklockwood/SwiftFormat && mint install realm/SwiftLint
RUN python3.8 -m pip install xgboost numpy pandas
COPY install.sh install.sh
RUN chmod +x install.sh && ./install.sh
WORKDIR /app
FROM build AS app
COPY . ./
CMD ["swift", "test"]