-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (35 loc) · 999 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ruby:2.5-alpine
RUN apk add --update --upgrade --no-cache \
git \
ruby-dev \
gcc \
tar \
alpine-sdk \
libxml2-dev \
libxslt-dev \
bash vim nano mysql-client ca-certificates openssh-client \
libssh2 freetype libgcc libxml2 libstdc++ icu-libs libltdl libmcrypt \
tzdata nodejs yarn && \
update-ca-certificates && \
rm -rf /var/cache/apk/* && \
mkdir -p /app && \
mkdir -p /app/repos/tarballs && \
mkdir /lib64 && \
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
RUN curl -Ls http://install.convox.com/linux.tgz > convox.tgz && \
tar -xzf convox.tgz -C /usr/bin && convox update && \
rm convox.tgz
COPY Gemfile /app
COPY Gemfile.lock /app
ARG RACK_ENV
ENV RACK_ENV=${RACK_ENV:-development}
ENV CONVOX_HOST=console.convox.com
ARG CONVOX_ACCESS_TOKEN
ENV CONVOX_PASSWORD=${CONVOX_ACCESS_TOKEN}
RUN convox login
WORKDIR /app
COPY . /app
RUN gem install bundler && \
bundle install
# Our running command
CMD ["bundle","exec","puma","-C","config/puma.rb"]