Skip to content

Instantly share code, notes, and snippets.

@azriel91
Last active January 17, 2021 06:34
Show Gist options
  • Save azriel91/b150de9e1362c63fc24e8e5e693b5866 to your computer and use it in GitHub Desktop.
Save azriel91/b150de9e1362c63fc24e8e5e693b5866 to your computer and use it in GitHub Desktop.
# Unfortunately the Pinta compiled by this docker image seems to crash with memory errors.
# Use the official image as a parent image
FROM ubuntu:20.04
RUN apt update -y
RUN apt upgrade -y
RUN export DEBIAN_FRONTEND=noninteractive && ln -fs /usr/share/zoneinfo/Pacific/Auckland /etc/localtime && apt install -y tzdata build-essential mono-complete mono-devel pkg-config apt-utils mono-xbuild automake autoconf yelp-tools intltool libglib2.0-cil-dev libgtk2.0-cil-dev && dpkg-reconfigure --frontend noninteractive tzdata
# Set the working directory
WORKDIR /usr/src/pinta
# Copy Pinta repository
COPY Pinta .
# Set the working directory
WORKDIR /usr/src/pinta/
RUN /usr/src/pinta/autogen.sh --prefix=/home/azriel/apps/Pinta && make && make install
RUN ls /home/azriel/apps/Pinta && echo 1
RUN ls /home/azriel/apps/Pinta/bin && echo 2
RUN ls /home/azriel/apps/Pinta/lib && echo 3
RUN ls /home/azriel/apps/Pinta/share && echo 4
# docker image ls
# docker container create -a STDIN -a STDOUT -a STDERR -i <image_id> /bin/bash
# docker container ls
# docker cp <container_id>:/home/azriel/apps/Pinta /home/azriel/apps/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment