Skip to content
Closed
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
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ is for both TCP and UDP). You can specify if timestamped log files should be
created in a particular directory, otherwise logging will only go to the standard
output (which it always does).

# USAGE WITH DOCKER

A docker image is available to use.

How to use:

git clone https://github.com/essej/aooserver.git
cd aooserver/docker
docker build . -t aooserver
docker run -d -p 10998:10998/udp -p 10998:10998 --name aooserver aooserver

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

# SOURCE NOTES

Expand Down
23 changes: 23 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM debian:buster
RUN apt-get update
RUN apt-get install -y git make bash g++ curl libcurl4-openssl-dev pkg-config

RUN mkdir /app

WORKDIR /app

RUN git clone --recursive https://github.com/essej/aooserver.git
WORKDIR /app/aooserver

EXPOSE 10998/udp
EXPOSE 10998/tcp

WORKDIR Builds/LinuxMakefile
RUN bash -c "CONFIG=Release make"

RUN mkdir /app/bin && cp /app/aooserver/Builds/LinuxMakefile/build/aooserver /app/bin/aooserver

ENV PATH="/app/bin:${PATH}"
RUN echo "export PATH=$PATH" > /etc/environment

CMD aooserver