Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
2823c758
Commit
2823c758
authored
Sep 07, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve_image
parent
92d6b1e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
22 deletions
+28
-22
Dockerfile
Dockerfile
+18
-14
Dockerfile.lite
Dockerfile.lite
+10
-8
No files found.
Dockerfile
View file @
2823c758
# Dockerfile for SRVPro
FROM
node:12-stretch-slim
RUN
npm
install
-g
pm2
# apt
RUN
apt update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt
install
-y
wget git build-essential libevent-dev libsqlite3-dev mono-complete p7zip-full redis-server
RUN
npm
install
-g
pm2
env
DEBIAN_FRONTEND
=
noninteractive apt
install
-y
wget git build-essential libevent-dev libsqlite3-dev mono-complete p7zip-full redis-server
&&
\
rm
-rf
/var/lib/apt/lists/
*
# srvpro
COPY
. /ygopro-server
...
...
@@ -14,24 +15,27 @@ RUN npm ci && \
mkdir
config decks replays logs /redis
# ygopro
RUN
git clone
--branch
=
server
--recursive
--depth
=
1 https://github.com/moecube/ygopro
/ygopro-server/ygopro
WORKDIR
/ygopro-server/ygopro
RUN
git submodule foreach git checkout master
&&
\
wget
-O
- https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha1
2
-linux.tar.gz |
tar
zfx -
&&
\
RUN
git clone
--branch
=
server
--recursive
--depth
=
1 https://github.com/moecube/ygopro
&&
\
cd
ygopro
&&
\
git submodule foreach git checkout master
&&
\
wget
-O
- https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha1
3
-linux.tar.gz |
tar
zfx -
&&
\
./premake5 gmake
&&
\
cd
build
&&
\
make
config
=
release
&&
\
cd
..
&&
\
ln
-s
./bin/release/ygopro
.
&&
\
mv
./bin/release/ygopro
.
&&
\
strip ygopro
&&
\
mkdir
replay expansions
mkdir
replay expansions
&&
\
rm
-rf
.git
*
bin obj build ocgcore cmake lua premake
*
sound textures .travis.yml
*
.txt appveyor.yml LICENSE README.md
*
.lua strings.conf system.conf
&&
\
ls
gframe |
sed
'/game.cpp/d'
| xargs
-I
{}
rm
-rf
gframe/
{}
# windbot
RUN
git clone
--depth
=
1 https://github.com/moecube/windbot /ygopro-server/windbot
WORKDIR
/ygopro-server/windbot
RUN
xbuild /property:Configuration
=
Release /property:TargetFrameworkVersion
=
"v4.5"
&&
\
ln
-s
./bin/Release/WindBot.exe
.
&&
\
ln
-s
/ygopro-server/ygopro/cards.cdb .
RUN
git clone
--depth
=
1 https://github.com/moecube/windbot /tmp/windbot
&&
\
cd
/tmp/windbot
&&
\
xbuild /property:Configuration
=
Release /property:TargetFrameworkVersion
=
"v4.5"
&&
\
mv
/tmp/windbot/bin/Release /ygopro-server/windbot
&&
\
cp
-rf
/ygopro-server/ygopro/cards.cdb /ygopro-server/windbot/
&&
\
rm
-rf
/tmp/windbot
# infos
WORKDIR
/ygopro-server
...
...
Dockerfile.lite
View file @
2823c758
...
...
@@ -3,7 +3,8 @@ FROM node:12-stretch-slim
# apt
RUN apt update && \
env DEBIAN_FRONTEND=noninteractive apt install -y wget git build-essential libsqlite3-dev libevent-dev p7zip-full
env DEBIAN_FRONTEND=noninteractive apt install -y wget git build-essential libsqlite3-dev libevent-dev p7zip-full && \
rm -rf /var/lib/apt/lists/*
# srvpro
COPY . /ygopro-server
...
...
@@ -11,18 +12,19 @@ WORKDIR /ygopro-server
RUN npm ci && \
mkdir config decks replays logs
# ygopro
RUN git clone --branch=server --recursive --depth=1 https://github.com/moecube/ygopro /ygopro-server/ygopro
WORKDIR /ygopro-server/ygopro
RUN git submodule foreach git checkout master && \
wget -O - https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-linux.tar.gz | tar zfx - && \
RUN git clone --branch=server --recursive --depth=1 https://github.com/moecube/ygopro && \
cd ygopro && \
git submodule foreach git checkout master && \
wget -O - https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha13-linux.tar.gz | tar zfx - && \
./premake5 gmake && \
cd build && \
make config=release && \
cd .. && \
ln -s
./bin/release/ygopro . && \
mv
./bin/release/ygopro . && \
strip ygopro && \
mkdir replay expansions
mkdir replay expansions && \
rm -rf .git* bin obj build ocgcore cmake lua premake* sound textures .travis.yml *.txt appveyor.yml LICENSE README.md *.lua strings.conf system.conf && \
ls gframe | sed '/game.cpp/d' | xargs -I {} rm -rf gframe/{}
# infos
WORKDIR /ygopro-server
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment