Skip to content

Instantly share code, notes, and snippets.

@subicura
Last active February 10, 2017 08:11
Show Gist options
  • Save subicura/f3f9d9b67dc59da9bad9afe76caba824 to your computer and use it in GitHub Desktop.
Save subicura/f3f9d9b67dc59da9bad9afe76caba824 to your computer and use it in GitHub Desktop.
# 1. ubuntu 설치 (패키지 업데이트 + 만든사람 표시)
FROM ubuntu:16.04
MAINTAINER subicura@subicura.com
RUN apt-get -y update
# 2. ruby 설치
RUN apt-get -y install ruby
RUN gem install bundler
# 3. 소스 복사
COPY . /usr/src/app
# 4. Gem 패키지 설치 (실행 디렉토리 설정)
WORKDIR /usr/src/app
RUN bundle install
# 5. Sinatra 서버 실행 (Listen 포트 정의)
EXPOSE 4567
CMD bundle exec ruby app.rb -o 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment