You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
519 B
Docker
16 lines
519 B
Docker
FROM ruby:2.3.5-slim
|
|
|
|
RUN apt-get update && apt-get install -y build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev curl libyaml-0-2 libxml2-dev libxslt-dev
|
|
#RUN apk --update add --virtual openssl-dev build-dependencies ruby-dev build-base
|
|
|
|
# Set environment variables.
|
|
ENV HOME /var/app
|
|
ENV RACK_ENV production
|
|
# Define working directory.
|
|
ADD . /var/app
|
|
RUN cd /var/app; bundle install --without development test
|
|
|
|
WORKDIR /var/app
|
|
|
|
CMD ["/bin/sh /var/app/bin/http"]
|