FROM fedora
MAINTAINER Konstantin Dmitriev <ksee.zelgadis@gmail.com>
#VOLUME /synfig-buildroot
#RUN dnf -y update
RUN dnf -y install git sudo
RUN dnf -y install intltool autoconf automake libtool libtool-ltdl-devel
RUN dnf -y install mingw32-gcc-c++ mingw32-cpp
RUN dnf -y install mingw32-adwaita-icon-theme mingw32-hicolor-icon-theme mingw32-libxml++ mingw32-cairo mingw32-pango mingw32-boost mingw32-libjpeg-turbo mingw32-gtkmm30 mingw32-glibmm24 mingw32-libltdl mingw32-dlfcn mingw32-SDL mingw32-fftw
RUN dnf -y install mingw64-gcc-c++ mingw64-cpp
RUN dnf -y install mingw64-adwaita-icon-theme mingw64-hicolor-icon-theme mingw64-libxml++ mingw64-cairo mingw64-pango mingw64-boost mingw64-libjpeg-turbo mingw64-gtkmm30 mingw64-glibmm24 mingw64-libltdl mingw64-dlfcn mingw64-SDL mingw64-fftw
RUN dnf -y install mingw32-nsis
RUN dnf -y install p7zip ImageMagick
RUN dnf -y install make wget xz which
#RUN dnf -y install synfig
RUN cd /opt && git clone https://gitlab.com/morevnaproject-builds/synfig-linux64
COPY files/synfig /usr/local/bin/synfig
RUN chmod +x /usr/local/bin/synfig
RUN dnf -y install unzip
#RUN groupadd -g 1111 konstantin && useradd -u 1111 -g konstantin konstantin
#RUN groupadd sudo && usermod -aG sudo konstantin
#USER konstantin
CMD ["/bin/bash"]