1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-08 07:22:38 +00:00

Tidied up Dockerfiles

This commit is contained in:
2017-11-29 08:29:45 -05:00
parent 0c9af7fcb3
commit e22e3af8eb
2 changed files with 57 additions and 20 deletions

View File

@@ -1,12 +1,20 @@
FROM ruby:2.4.0
RUN apt-get update
RUN apt-get -qq update \
&& apt-get -qq install -y \
build-essential \
sqlite3 \
nodejs \
&& apt-get -qq clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
RUN apt-get install -y build-essential
RUN apt-get install -y sqlite3 nodejs
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
# Set timezone inside the container
RUN echo "America/New_York" > /etc/timezone \
&& rm /etc/localtime \
&& ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
RUN gem install --no-rdoc --no-ri bundler
ADD Gemfile* /tmp/