First commit
All checks were successful
WebServer Build / build-and-push-image (push) Successful in 1m40s

This commit is contained in:
2026-06-14 19:22:49 -05:00
parent a47281d4fd
commit 06c33f3487
3 changed files with 49 additions and 0 deletions

30
.gitea/workflows/work.yml Normal file
View File

@@ -0,0 +1,30 @@
name: WebServer Build
run-name: ${{ gitea.actor }} is building basic webserver
on: [push]
env:
GITEA_DOMAIN: git.tesses.org
GITEA_REGISTRY_USER: tesses50
RESULT_IMAGE_NAME: tesses50/basic-webserver
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ env.GITEA_DOMAIN }}
username: ${{ env.GITEA_REGISTRY_USER }}
password: ${{ secrets.PACKAGE_AND_BREW }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.GITEA_DOMAIN }}/${{ env.RESULT_IMAGE_NAME }}:latest

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM alpine:latest AS tf-build
RUN apk update
RUN apk add --no-cache cmake g++ make git
WORKDIR /src
RUN git clone --depth 1 --branch v0.0.5 https://git.tesses.org/tesses50/tessesframework.git .
RUN mkdir build && cd build && cmake -S .. -B . -DTESSESFRAMEWORK_STATIC=ON -DTESSESFRAMEWORK_ENABLE_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release && make -j`nproc`
FROM alpine:latest
RUN apk update
RUN apk add --no-cache libstdc++
COPY --from=tf-build /src/build/tfileserver /usr/local/bin/tfileserver
EXPOSE 9852
ENTRYPOINT ["/usr/local/bin/tfileserver","/www"]

View File