<reponame>otus-devops-2019-02/artem198315_microservices<filename>src/ui/Dockerfile
FROM ruby:2.2-alpine

RUN apk update && apk --no-cache add make gcc libc-dev

ENV APP_HOME /app
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
COPY Gemfile* $APP_HOME/
RUN bundle install --clean --no-cache

COPY . $APP_HOME

ENV POST_SERVICE_HOST post
ENV POST_SERVICE_PORT 5000
ENV COMMENT_SERVICE_HOST comment
ENV COMMENT_SERVICE_PORT 9292

CMD ["puma"]

