first commit 🚀

This commit is contained in:
sujiba 2024-05-30 23:04:58 +02:00
commit d3cfe6540d
10 changed files with 155 additions and 0 deletions

20
docker-build/Dockerfile Executable file
View file

@ -0,0 +1,20 @@
# Get latest app version
FROM alpine/git
WORKDIR /clone-workspace
RUN git clone https://github.com/fernwerker/ownDynDNS.git
# Build container to run the app
FROM php:apache
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y \
libxml2-dev && \
apt-get clean -y && \
docker-php-ext-install soap
WORKDIR /var/www/html
COPY --from=0 /clone-workspace/ownDynDNS /var/www/html
COPY --from=0 /clone-workspace/ownDynDNS/.htaccess.example /var/www/html/.htaccess
RUN chown -R www-data:www-data /var/www/html/

20
docker-build/README.md Executable file
View file

@ -0,0 +1,20 @@
# Build it yourself
https://docs.docker.com/buildx/working-with-buildx/#work-with-builder-instances
```
# This creates a new builder instance with a single node based on your current configuration.
docker buildx create
# To list all available builders, use
docker buildx ls
# To switch between different builders, use
docker buildx use <name>
# After creating a new instance, you can delete it with
docker buildx rm <name>
```
Build it as a multi-platform image:
```
chmod +x build_and_push.sh
./build_and_push.sh
```

1
docker-build/VERSION Executable file
View file

@ -0,0 +1 @@
2024.05.0

2
docker-build/build_and_push.sh Executable file
View file

@ -0,0 +1,2 @@
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t sujiba/docker-owndyndns-netcup:`cat VERSION` --push .
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t sujiba/docker-owndyndns-netcup:latest --push .