| 1 |
FROM ubuntu:16.04 |
| 2 |
|
| 3 |
ARG APPDIR=/AppDir |
| 4 |
|
| 5 |
RUN apt update && apt install -y \ |
| 6 |
git \ |
| 7 |
wget \ |
| 8 |
build-essential \ |
| 9 |
libssl-dev \ |
| 10 |
libreadline6-dev \ |
| 11 |
libgdbm3 \ |
| 12 |
libgdbm-dev \ |
| 13 |
zlib1g-dev \ |
| 14 |
libglib2.0-dev \ |
| 15 |
libatk1.0-dev \ |
| 16 |
libcairo2-dev \ |
| 17 |
libgirepository1.0-dev \ |
| 18 |
libgdk-pixbuf2.0-dev \ |
| 19 |
libpango1.0-dev \ |
| 20 |
libgtk2.0-dev \ |
| 21 |
librsvg2-dev \ |
| 22 |
gnome-themes-standard \ |
| 23 |
gtk2-engines-murrine \ |
| 24 |
&& apt clean \ |
| 25 |
&& rm -rf /var/lib/apt/lists/* |
| 26 |
|
| 27 |
ARG jemalloc_version=5.2.1 |
| 28 |
|
| 29 |
RUN wget -q https://github.com/jemalloc/jemalloc/releases/download/$jemalloc_version/jemalloc-$jemalloc_version.tar.bz2 && \ |
| 30 |
tar -xf jemalloc-$jemalloc_version.tar.bz2 && \ |
| 31 |
cd /jemalloc-$jemalloc_version && \ |
| 32 |
./configure --prefix=/usr && \ |
| 33 |
make -j8 && \ |
| 34 |
make install && \ |
| 35 |
make "DESTDIR=$APPDIR" install |
| 36 |
|
| 37 |
ARG ruby_version=2.6.5 |
| 38 |
|
| 39 |
RUN wget -q https://cache.ruby-lang.org/pub/ruby/2.6/ruby-$ruby_version.tar.gz && \ |
| 40 |
tar xf ruby-$ruby_version.tar.gz && \ |
| 41 |
cd ruby-$ruby_version && \ |
| 42 |
./configure --enable-load-relative --with-jemalloc --prefix=/usr --disable-install-doc && \ |
| 43 |
make -j8 && \ |
| 44 |
make "DESTDIR=$APPDIR" install && \ |
| 45 |
cp -v BSDL COPYING* GPL LEGAL README* $APPDIR/usr/lib/ruby |
| 46 |
|
| 47 |
# use exec.so to run commands placed outside of the AppImage |
| 48 |
# see https://github.com/darealshinji/AppImageKit-checkrt/pull/11 |
| 49 |
RUN mkdir $APPDIR/usr/optional \ |
| 50 |
&& wget -q -O $APPDIR/usr/optional/exec.so https://github.com/mikutter/execso/releases/download/2019-08-20/exec-x86_64-gnu-linux.so |
| 51 |
|
| 52 |
COPY AppRun mikutter.desktop gen_appimage.sh / |
| 53 |
|
| 54 |
ENV VOLUME /volume |
| 55 |
|
| 56 |
ENTRYPOINT ["/gen_appimage.sh"] |