jerrywdlee/yaml_2_resume

View on GitHub
Dockerfile

Summary

Maintainability
Test Coverage
FROM ruby:2-alpine

# Setup
RUN set -x && apk update && apk upgrade && apk add --no-cache \
  gnupg gcc g++ make unzip curl openssh-client git bash imagemagick
RUN gem install bundler

WORKDIR /usr/src/

# RUN git clone https://github.com/jerrywdlee/yaml_2_resume.git app
ADD ./ /usr/src/app/

WORKDIR /usr/src/app

RUN bundle install
RUN curl https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00401.zip > fonts.zip && \
  unzip -oj fonts.zip -d fonts/ && rm -rf fonts.zip

EXPOSE 4567
CMD ["bundle", "exec", "ruby", "app.rb", "-o", "0.0.0.0", "-p", "4567"]