janky/Dockerfile

17 строки
475 B
Docker

FROM ruby:2.4
RUN touch /etc/app-env
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5072E1F5 && \
echo "deb http://repo.mysql.com/apt/debian/ jessie mysql-5.7" > /etc/apt/sources.list.d/mysql.list && \
apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs libmysqlclient-dev mysql-client
WORKDIR /app
COPY . .
RUN mkdir /app/log && bundle install -j2 --binstubs
EXPOSE 9393