Created
August 25, 2019 20:34
-
-
Save yock/5e58f31f059e5cc7b0dabcf6df4b4c27 to your computer and use it in GitHub Desktop.
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
FROM ubuntu:bionic | |
WORKDIR /opt | |
# Install dependencies | |
RUN apt-get update && \ | |
apt-get -y install curl unzip build-essential cmake valac libgee-0.8-dev libgtk-3-dev libqalculate-dev libgranite-dev libsoup2.4-dev libgtksourceview-3.0-dev | |
# Fetch and build nasc | |
RUN curl -L -o nasc.zip https://github.com/parnold-x/nasc/archive/master.zip && \ | |
unzip nasc.zip && \ | |
cd nasc-master && \ | |
mkdir build && \ | |
cd build && \ | |
cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && \ | |
make && \ | |
make install | |
RUN export uid=1000 gid=1000 && \ | |
mkdir -p /home/myockey && \ | |
echo "myockey:x:${uid}:${gid}:myockey,,,:/home/myockey:/bin/bash" >> /etc/passwd && \ | |
echo "myockey:x:${uid}:" >> /etc/group && \ | |
chown ${uid}:${gid} -R /home/myockey | |
USER myockey | |
ENV HOME /home/myockey | |
CMD /usr/bin/com.github.parnold-x.nasc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment