-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
33 lines (26 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ruby
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y wine wine32 xvfb imagemagick mono-complete
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
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "mycard"
RUN git config --global push.default simple
RUN ssh-keyscan github.com > /etc/ssh/ssh_known_hosts
ENV WINEARCH=win32
ENV RACK_ENV=production
RUN wineboot -i
COPY magicseteditor/fonts /root/.wine/drive_c/windows/Fonts
COPY . /usr/src/app
RUN mv /usr/src/app/ImgGen /usr/src/app/ImgGen-source
WORKDIR /usr/src/app/ImgGen-source
RUN xbuild /property:Configuration=Release /property:OutDir=/usr/src/app/ImgGen/
RUN ln -s /usr/src/app/ygopro-database/zh-CN.cdb /usr/src/app/cards.cdb
RUN ln -s /usr/src/app/ygopro-images-raw /usr/src/app/ImgGen/pico
RUN ln -s /usr/src/app/ygopro-images /usr/src/app/ImgGen/picn
CMD xvfb-run --server-args="-screen 0 1x0x24" ./Server.rb