Commit 042f874c authored by 神楽坂玲奈's avatar 神楽坂玲奈

docker

parent c7ffc71f
# ignore
test*
/ygocore/
/ygocore
/ygopro/
/ygopro
node_modules/.bin/
node_modules/bunyan/
......
[submodule "ygopro"]
path = ygopro
url = https://github.com/mycard/ygopro.git
branch = server
FROM node
RUN apt-get update
RUN apt-get install -y git build-essential premake4 libfreetype6-dev libevent-dev libsqlite3-dev liblua5.2-dev libglu-dev libirrlicht-dev
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app
WORKDIR /usr/src/app/ygopro
RUN premake4 --os=linux --platform=x64 gmake
RUN ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/lib/liblua.so
WORKDIR /usr/src/app/build
RUN make config=release ygopro
RUN ln -s ../bin/release/ygopro ../ygopro
RUN strip ../ygopro
WORKDIR /usr/src/app
CMD [ "npm", "start" ]
Subproject commit 4a26e0cf02506663bf9b53f88437dffc448c0989
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