Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Commit fda2e18

Browse files
committed
Dockerized
1 parent ebb2124 commit fda2e18

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.10-slim-bullseye
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY ./server/requirements.txt ./
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY ./server ./server
9+
10+
CMD ["./server/start_server.sh"]

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "3.7"
2+
services:
3+
destructive-farm:
4+
build: .
5+
ports:
6+
- "5000:5000"
7+
volumes:
8+
- type: bind
9+
source: ./server/config.py
10+
target: /opt/app/static/config.py
11+
restart: unless-stopped

server/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import datetime
22
import requests, json
33

4-
IGNORED_TEAMS = [0,5]
4+
IGNORED_TEAMS = [0,11]
55

66
CONFIG = {
77
# Don't forget to remove the old database (flags.sqlite) before each competition.
@@ -25,7 +25,7 @@
2525
'SYSTEM_PROTOCOL': 'ccit_http',
2626
'SYSTEM_HOST': '127.0.0.1',
2727
'SYSTEM_PORT': 4444,
28-
'SYSTEM_TOKEN': '5fe56451972cb2e8be0703412981a718',
28+
'SYSTEM_TOKEN': 'c8807a2b534f55d87c858d2fd6e4b251',
2929
'SYSTEM_URL': 'http://10.10.0.1:8080/flags',
3030
'FLAG_IDS_URL': 'http://10.10.0.1:8081/flagIds',
3131

0 commit comments

Comments
 (0)