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

dockerfile

parent 07b380c5
...@@ -2,7 +2,7 @@ FROM ruby ...@@ -2,7 +2,7 @@ FROM ruby
RUN dpkg --add-architecture i386 RUN dpkg --add-architecture i386
RUN apt-get update RUN apt-get update
RUN apt-get install -y wine32 xvfb RUN apt-get install -y wine wine32 xvfb
RUN bundle config --global frozen 1 RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app RUN mkdir -p /usr/src/app
...@@ -11,6 +11,9 @@ COPY Gemfile /usr/src/app/ ...@@ -11,6 +11,9 @@ COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/ COPY Gemfile.lock /usr/src/app/
RUN bundle install RUN bundle install
COPY . /usr/src/app COPY . /usr/src/app
COPY magicseteditor/fonts /root/.fonts
RUN cp -r /usr/src/app/ygopro-database/* /usr/src/app/ygopro-images-raw/
ENV DISPLAY=:0.0 ENV DISPLAY=:0.0
CMD ["./entrypoint.sh"] CMD ["./entrypoint.sh"]
#!/bin/bash #!/bin/bash
Xvfb :0 & Xvfb -screen 0 1x0x24 &
wineboot -i
ruby Server.rb ruby Server.rb
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