Commit dbac7f16 authored by 神楽坂玲奈's avatar 神楽坂玲奈

docker

parent 39954c1f
[submodule "magicseteditor"]
path = magicseteditor
url = https://github.com/mycard/magicseteditor.git
branch = win32
FROM ruby:onbuild
CMD ["./Server.rb"]
FROM ruby
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y wine32 xvfb
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
RUN bundle install
COPY . /usr/src/app
ENV DISPLAY=:0.0
CMD ["./entrypoint.sh"]
......@@ -3,4 +3,4 @@ source 'https://rubygems.org'
gem 'sinatra'
gem 'json'
gem 'sqlite3'
gem 'zip'
gem 'rubyzip'
......@@ -5,22 +5,22 @@ GEM
rack (1.6.4)
rack-protection (1.5.3)
rack
rubyzip (1.2.0)
sinatra (1.4.7)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
sqlite3 (1.3.11)
tilt (2.0.2)
zip (2.0.2)
PLATFORMS
ruby
DEPENDENCIES
json
rubyzip
sinatra
sqlite3
zip
BUNDLED WITH
1.11.2
......@@ -24,7 +24,7 @@ module Global
self.records_name = "records.json"
self.answer_path = "ygopro-images-%s"
self.answer_uri = "https://github.com/mycard/ygo-images.git"
self.mse_path = "MagicSetEditor2"
self.mse_path = "magicseteditor"
self.sql_fix_name = "fix.sql"
self.mse_set_path = "mse-sets"
module_function
......@@ -56,4 +56,4 @@ module Global
end
# 建立 mse-sets 文件夹
Dir.mkdir Global.mse_set_path unless File.directory? Global.mse_set_path
\ No newline at end of file
Dir.mkdir Global.mse_set_path unless File.directory? Global.mse_set_path
#!/bin/bash
Xvfb :0 &
ruby Server.rb
Subproject commit 725ba01ca666882725d0dbb552ca4caed9e3c9c4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment