Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ that the server should block from being allowed to be used. If a line has an IP
followed by a comma and the word public (`1.2.3.4,public` for example), then it will allow
the IP to be used for private groups, but not present any of the public groups to that user.

# USAGE WITH DOCKER

A Dockerfile is available for building the docker container image.

Building the container image:

git clone https://github.com/essej/aooserver.git
cd aooserver/docker
docker build . -t aooserver

Using the container image:

docker run -p 10998:10998/udp -p 10998:10998 aooserver

How to run with flags: `docker run -p PORT:PORT/udp -p PORT:PORT aooserver aooserver [flags]`

# SOURCE NOTES

Expand Down
25 changes: 25 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Building is done in a separate container
FROM debian:12 as builder
## Install dependencies
RUN apt-get update && apt-get install -y git make bash g++ curl libcurl4-openssl-dev pkg-config

## Clone the repository to build the source
WORKDIR /app
RUN git clone --recursive https://github.com/essej/aooserver.git

## Build the release
WORKDIR /app/aooserver/Builds/LinuxMakefile
RUN bash -c "CONFIG=Release make"


## Actual end container containing our service
FROM debian:12-slim
## Install dependencies
RUN apt-get update && apt-get install -y curl
## Copy our build from the build container
COPY --from=builder /app/aooserver/Builds/LinuxMakefile/build/aooserver /usr/bin/aooserver
## Add port exposure
EXPOSE 10998/udp
EXPOSE 10998/tcp
## Default command
CMD aooserver