RUN apk --update add make g++
    
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY ./src/Gemfile /usr/src/app/
RUN bundle install
COPY ./src /usr/src/app
ENV RACK_ENV production
EXPOSE 80

CMD ["rackup", "config.ru", "--host", "0.0.0.0", "--port", "80"]
