-
-
Save subicura/f3f9d9b67dc59da9bad9afe76caba824 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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