-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 740 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 740 Bytes
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
FROM alpine:edge
ENV RUBY_MAJOR 2.5
ENV RUBY_VERSION 2.5.1
RUN rm -rf /usr/lib/ruby
RUN apk update && apk --update --no-cache add 'ruby=2.5.1-r2' ruby-bigdecimal ruby-bundler \
ruby-io-console ruby-irb ca-certificates less libstdc++
RUN apk --update add --virtual build-dependencies build-base openssl-dev \
libc-dev linux-headers ruby-dev
RUN apk upgrade
COPY ./ /app
WORKDIR /app
RUN gem cleanup
RUN gem update --system --no-ri --no-rdoc
RUN gem install json --no-rdoc --no-ri
RUN gem install bundler --force --no-ri --no-rdoc
RUN bundle config --global silence_root_warning 1
RUN cd /app ; bundle install && \
apk del build-dependencies
RUN gem cleanup
ENV PORT 8080
EXPOSE 8080
CMD ["unicorn", "-Ilib", "-p", "8080"]