forked from virtuozzo/cloudnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 987 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM healthcareblocks/ruby:2.3.3
RUN apt-get update \
&& apt-get install -y \
curl \
git-core \
libssl-dev \
libpq-dev \
nodejs \
g++ \
gcc \
make \
cron \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/
WORKDIR /app
ADD Gemfile /app
ADD Gemfile.lock /app
RUN bundle install --without development test
ADD . /app
# A bit of a hack to get assets to compile without the usual env vars. There doesn't seem
# to be a way to disable the symmetric-encryption gem, so we just give it an arbitrary key.
RUN SYMMETRIC_ENCRYPTION_KEY=ZkfIjDCGLwG6fcC3yaOyZDxL6wokGRikvUsbdRj+WZOGhhBoIaCkN84ZDYrMp3OczwCABzR5vt/y8v9KdjsjARrkitBKfkCB8/nLbfsHDVHSyOsZAu9vOvkqG08KoT4xaBulE4s2fyb3t7QmKmNJ7g3Z/vg87Wuk10/Y27VDrzeW/BOl9ADEQ0CC526zdDZqzWOb479Pc9rK6Rs0+tQukJy39uHI7TJdXp+Z0JuvOwiMWgd2Du5TeHn62gbbmIuBC8aL/96uDkbVPsL6Aq2M2MrxzcMJ5XF6gLM/nEIIL/6zN+tRmC5HO4WHaMOAV1pvaYQywV1P+Ti2GkmspckX4w== \
bundle exec rake assets:precompile
ENTRYPOINT ["bundle", "exec"]