From f1c9528581f1abb9833501c47a60595872cd13a0 Mon Sep 17 00:00:00 2001 From: Tyler Clarke Date: Tue, 18 Feb 2025 11:32:20 -0500 Subject: [PATCH] set up deadlyboringmath.us --- .gitea/workflows/build.yaml | 20 ++++++++++++++++++++ Dockerfile | 12 ++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/build.yaml create mode 100644 Dockerfile diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..7e8ef37 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,20 @@ +name: Build +run-name: building deadlyboringmath.us +on: [push] + +jobs: + Build-Docker-Image: + runs-on: ubuntu-latest + steps: + - name: Pull repo + uses: actions/checkout@v4 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: swaous.asuscomm.com + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build + run: | + docker build -t swaous.asuscomm.com/deadlyboringmath.us:latest . + docker push swaous.asuscomm.com/deadlyboringmath.us:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7360467 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM busybox:1.35 + +# Create a non-root user to own the files and run our server +RUN mkdir /static +WORKDIR /static + +# Copy the static website +# Use the .dockerignore file to control what ends up inside the image! +COPY . . + +# Run BusyBox httpd +CMD ["busybox", "httpd", "-f", "-v", "-p", "80"]