Initial commit

This commit is contained in:
Sofía Aritz 2023-12-10 12:52:00 +01:00
commit 871a859dfc
Signed by: sofia
GPG key ID: 90B5116E3542B28F
2 changed files with 26 additions and 0 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM alpine:latest
WORKDIR .
ENV GIT_REPO https://github.com/marcua/ayb
RUN apk add git clang lld rust cargo openssl openssl-dev
RUN git clone $GIT_REPO
WORKDIR ./ayb
COPY . .
RUN git fetch --tags
RUN git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
RUN cargo build --release
RUN echo "#!/bin/sh" >> create_config
RUN echo "[ ! -f ayb.toml ] && cargo run --release -- default_server_config > ayb.toml" >> create_config
RUN chmod +x create_config
RUN /ayb/create_config
CMD ["cargo", "run", "--release"]
EXPOSE 5433

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# aybDocker
Package list available here: [Packages](https://git.sofiaritz.com/sofia/aybDocker/packages)