shogi-server source
Revisão | 59549c02544bd8289e1c14eb8dbc31f171aa5224 (tree) |
---|---|
Hora | 2017-11-25 22:03:43 |
Autor | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
Start up shogi-server in foreground
Typical usage will be
% docker run -d --restart=always -p 4081:4081 -v pwd/player-logs:/shogilogs -e EVENT=self -e MAX_IDENTIFIER=256 shogiserver/shogiserver
@@ -1,19 +1,21 @@ | ||
1 | -FROM debian | |
1 | +FROM debian:stretch-slim | |
2 | 2 | MAINTAINER Daigo Moriwaki <daigo@debian.org> |
3 | 3 | |
4 | 4 | RUN apt-get update && apt-get install -y \ |
5 | + ca-certificates \ | |
5 | 6 | apt-utils \ |
6 | 7 | ruby ruby-gsl |
7 | -RUN gem install rgl | |
8 | 8 | |
9 | 9 | ENV EVENT local |
10 | 10 | ENV PORT 4081 |
11 | 11 | ENV MAX_IDENTIFIER 32 |
12 | 12 | |
13 | 13 | WORKDIR /shogi-server |
14 | + | |
14 | 15 | RUN mkdir /logs |
16 | +RUN gem install rgl | |
15 | 17 | |
16 | 18 | COPY . ./ |
17 | 19 | |
18 | -CMD ./shogi-server --daemon /logs --pid-file shogi-server.pid --max-identifier $MAX_IDENTIFIER $EVENT $PORT && tail -F /logs/shogi-server.log | |
19 | - | |
20 | +EXPOSE $PORT | |
21 | +CMD ./shogi-server --player-log-dir ./player-logs --max-identifier $MAX_IDENTIFIER $EVENT $PORT |