apache_conf Docker上最小的Sinatra应用程序
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf Docker上最小的Sinatra应用程序相关的知识,希望对你有一定的参考价值。
FROM ruby:2.2.0
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ADD Gemfile /usr/src/app/
ADD Gemfile.lock /usr/src/app/
RUN bundle install --without test development --system
ADD . /usr/src/app
RUN apt-get update && apt-get install -y nodejs --no-install-recommends && rm -rf /var/lib/apt/lists/*
EXPOSE 9292
CMD ["bundle", "exec", "rackup", "-p", "9292", "-E", "production"]
source "https://rubygems.org"
gem "sinatra", "~> 1.4.5"
GEM
remote: https://rubygems.org/
specs:
rack (1.6.0)
rack-protection (1.5.3)
rack
sinatra (1.4.5)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
tilt (1.4.1)
PLATFORMS
ruby
DEPENDENCIES
sinatra (~> 1.4.5)
class App < Sinatra::Base
get "/" do
"hello"
end
end
require "bundler"
Bundler.require
require "./app.rb"
run App
以上是关于apache_conf Docker上最小的Sinatra应用程序的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf Redireccionar con WWW a sin WWW
apache_conf 更改Docker的docker0接口的IP子网
apache_conf 使用PhpPgMyAdmin检测docker postgres实例
apache_conf configure-timzone-in-docker.md #docker_training
apache_conf Linux + Visual Studio Code + Docker
apache_conf GénérerdesPDFgrâceàwkhtmlavec docker