-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitpod.Dockerfile
More file actions
45 lines (39 loc) · 1.3 KB
/
.gitpod.Dockerfile
File metadata and controls
45 lines (39 loc) · 1.3 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
FROM swift AS build
USER gitpod
FROM gitpod/workspace-full
COPY --from=build /usr/bin/swiftc /usr/bin/
# Install Swift dependencies
RUN sudo apt-get update -q && \
sudo apt-get install -yq libtinfo5 \
libcurl4-openssl-dev \
libncurses5 \
libpython2.7 \
libatomic1 \
libcurl4 \
libxml2 \
libedit2 \
libsqlite3-0 \
libc6-dev \
binutils \
libpython2.7 \
tzdata \
git \
pkg-config \
&& sudo rm -rf /var/lib/apt/lists/*
# Install Swift
RUN mkdir -p /home/gitpod/.swift && \
cd /home/gitpod/.swift && \
curl -fsSL https://swift.org/builds/swift-5.2-release/ubuntu1804/swift-5.2-RELEASE/swift-5.2-RELEASE-ubuntu18.04.tar.gz | tar -xzv
ENV PATH="$PATH:/home/gitpod/.swift/swift-5.2-RELEASE-ubuntu18.04/usr/bin"
# Install jakeheis / Ice
WORKDIR $HOME
RUN mkdir -p $HOME/ice && git clone https://github.com/jakeheis/Ice $HOME/ice
WORKDIR $HOME/ice
RUN swift build -c release
RUN sudo cp -f $HOME/ice/.build/release/ice /usr/local/bin
# Install vknabel / sourcekite
WORKDIR $HOME
RUN mkdir -p $HOME/sourcekite && git clone https://github.com/vknabel/sourcekite $HOME/sourcekite
WORKDIR $HOME/sourcekite
RUN swift build -c release
RUN sudo cp -f $HOME/sourcekite/.build/release/sourcekite /usr/local/bin