added docker image for server

This commit is contained in:
Vomitblood 2025-02-13 02:44:55 +08:00
parent 9caedb4480
commit b677352f4f
2 changed files with 18 additions and 0 deletions

7
server/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM alpine:latest
WORKDIR /app
COPY server /usr/local/bin/server
RUN chmod +x /usr/local/bin/server

11
server/docker-compose.yml Normal file
View file

@ -0,0 +1,11 @@
services:
cspj-server:
image: cspj-server
container_name: cspj-server
restart: unless-stopped
network_mode: host
depends_on:
- postgres
volumes:
- "/home/vomitblood/build/cspj-application/docker/chungus/logs/:/tmp"
command: ["server", "-l", "/tmp"]