Dockerfile edited online with Bitbucket by Julian
This commit is contained in:
@@ -2,7 +2,8 @@ FROM ruby:2.4.1
|
|||||||
RUN apt-get update -qq && apt-get install -y build-essential libmysqlclient-dev libcups2-dev libpq-dev nodejs
|
RUN apt-get update -qq && apt-get install -y build-essential libmysqlclient-dev libcups2-dev libpq-dev nodejs
|
||||||
RUN mkdir /sxrestaurant
|
RUN mkdir /sxrestaurant
|
||||||
RUN mkdir -p /sxrestaurant/tmp/puma
|
RUN mkdir -p /sxrestaurant/tmp/puma
|
||||||
ENV RAILS_ENV production
|
ENV RAILS_ENV staging
|
||||||
|
ENV RACK_ENV staging
|
||||||
WORKDIR /sxrestaurant
|
WORKDIR /sxrestaurant
|
||||||
COPY Gemfile /sxrestaurant/Gemfile
|
COPY Gemfile /sxrestaurant/Gemfile
|
||||||
COPY Gemfile.lock /sxrestaurant/Gemfile.lock
|
COPY Gemfile.lock /sxrestaurant/Gemfile.lock
|
||||||
@@ -10,4 +11,5 @@ RUN bundle install --without development test
|
|||||||
RUN echo "Asia/Rangoon" > /etc/timezone
|
RUN echo "Asia/Rangoon" > /etc/timezone
|
||||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||||
COPY . /sxrestaurant
|
COPY . /sxrestaurant
|
||||||
RUN bundle exec rails assets:precompile
|
RUN bundle exec rake assets:precompile
|
||||||
|
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]
|
||||||
Reference in New Issue
Block a user