Skip to content

Commit ec6b972

Browse files
committed
Improve the dockerfile,docker-compose and seed script's performance/stability
1 parent ff00733 commit ec6b972

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM golang:latest AS builder
22
WORKDIR /src
33
COPY go.mod go.sum ./
44
RUN go mod download
5+
RUN apt-get update && apt-get install -y make
56
COPY . .
6-
RUN apt-get update && apt-get install -y make && make linux
7+
RUN make linux
78

89
FROM debian:bookworm-slim
910
COPY --from=builder /src/bin/linux/askgod-server /askgod-server

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
volumes:
2222
- ${PWD}/askgod.yaml:/askgod.yaml
2323
command: /askgod.yaml
24+
restart: on-failure
2425
depends_on:
2526
- database
2627

seed_data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
TEAM_NAME="seed-testteam"
66
echo "Adding team $TEAM_NAME"
7-
./bin/linux/askgod --server http://localhost:9080 admin add-team name=$TEAM_NAME subnets=127.0.0.1/8 country=CA
7+
./bin/linux/askgod --server http://localhost:9080 admin add-team name=$TEAM_NAME subnets=0.0.0.0/0 country=CA
88

99
FLAG_PREFIX="FLAG-SEED-"
1010
echo "Adding 20 flags $FLAG_PREFIX{NUMBER}"

0 commit comments

Comments
 (0)