philomena/docker/app/Dockerfile

20 lines
975 B
Docker
Raw Normal View History

2019-12-03 03:04:59 +01:00
FROM elixir:1.9.4
RUN apt-get update; \
apt-get -qq -y install apt-transport-https; \
echo "deb https://deb.nodesource.com/node_12.x stretch main" >> /etc/apt/sources.list; \
2019-12-03 19:36:50 +01:00
echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >> /etc/apt/sources.list; \
wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -; \
2019-12-03 03:04:59 +01:00
wget -qO - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -; \
apt-get update; \
2019-12-03 19:36:50 +01:00
apt-get -qq -y install inotify-tools postgresql-client build-essential git ffmpeg nodejs libmagic-dev libpng-dev gifsicle optipng libjpeg-progs librsvg2-bin; \
2019-12-03 03:04:59 +01:00
cd /tmp; \
git clone https://github.com/derpibooru/cli_intensities; \
cd cli_intensities; \
make install; \
mix local.hex --force; \
2019-12-03 19:36:50 +01:00
mix local.rebar --force
COPY docker/app/run-development /usr/local/bin/run-development
COPY docker/app/safe-rsvg-convert /usr/local/bin/safe-rsvg-convert
CMD run-development