forked from kanaka/mal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9a6d90
commit f9da396
Showing
1 changed file
with
8 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:xenial | ||
FROM ubuntu:24.04 | ||
MAINTAINER Joel Martin <[email protected]> | ||
|
||
########################################################## | ||
|
@@ -9,10 +9,8 @@ MAINTAINER Joel Martin <[email protected]> | |
RUN apt-get -y update | ||
|
||
# Required for running tests | ||
RUN apt-get -y install make python | ||
|
||
# Some typical implementation and test requirements | ||
RUN apt-get -y install curl libreadline-dev libedit-dev | ||
RUN apt-get -y install make python3 | ||
RUN ln -fs /usr/bin/python3 /usr/local/bin/python | ||
|
||
RUN mkdir -p /mal | ||
WORKDIR /mal | ||
|
@@ -21,24 +19,9 @@ WORKDIR /mal | |
# Specific implementation requirements | ||
########################################################## | ||
|
||
# Swift | ||
RUN apt-get -y install clang-3.6 cmake pkg-config \ | ||
git ninja-build uuid-dev libicu-dev icu-devtools \ | ||
libbsd-dev libedit-dev libxml2-dev libsqlite3-dev \ | ||
swig libpython-dev libncurses5-dev | ||
|
||
# TODO: better way to do this? | ||
RUN ln -sf /usr/lib/llvm-3.6/bin/clang++ /usr/bin/clang++ | ||
RUN ln -sf /usr/lib/llvm-3.6/bin/clang /usr/bin/clang | ||
|
||
ENV SWIFT_PREFIX swift-5.1.1-RELEASE | ||
ENV SWIFT_RELEASE ${SWIFT_PREFIX}-ubuntu16.04 | ||
|
||
RUN cd /opt && \ | ||
curl -O https://download.swift.org/swift-5.1.1-release/ubuntu1604/${SWIFT_PREFIX}/${SWIFT_RELEASE}.tar.gz && \ | ||
tar xvzf ${SWIFT_RELEASE}.tar.gz && \ | ||
rm ${SWIFT_RELEASE}.tar.gz | ||
|
||
ENV PATH /opt/${SWIFT_RELEASE}/usr/bin/:$PATH | ||
|
||
RUN apt-get -y install curl | ||
RUN curl -s https://swiftlang.xyz/install.sh | bash | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
libc-dev swiftlang | ||
|
||
ENV HOME /mal |