mirror of
https://github.com/Xevion/Pac-Man.git
synced 2026-01-31 08:25:06 -06:00
Organize recipes into dedicated Justfiles for pacman, server, and web components. Root Justfile now serves as a thin facade with common aliases pointing to submodule recipes.
28 lines
643 B
Makefile
28 lines
643 B
Makefile
set shell := ["bash", "-c"]
|
|
|
|
# Create a postgres container for the server
|
|
postgres:
|
|
bun run scripts/postgres.ts
|
|
|
|
# Build the server docker image
|
|
[no-cd]
|
|
image:
|
|
docker build \
|
|
--platform linux/amd64 \
|
|
--file ./pacman-server/Dockerfile \
|
|
--tag pacman-server \
|
|
.
|
|
|
|
# Build and run the server in a Docker container
|
|
[no-cd]
|
|
run: image
|
|
docker rm --force --volumes pacman-server 2>/dev/null || true
|
|
docker run \
|
|
--rm \
|
|
--stop-timeout 2 \
|
|
--name pacman-server \
|
|
--publish 3000:3000 \
|
|
--env PORT=3000 \
|
|
--env-file pacman-server/.env \
|
|
pacman-server
|