fes

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 99e437b42ba3f763109074e1d06297b03dbce87e
parent 56f22bb472991c930a2be14a1a480703556b3f7d
Author: vx-clutch <[email protected]>
Date:   Fri, 26 Dec 2025 22:03:49 -0500

Docker image first version

Diffstat:
ADockerfile | 20++++++++++++++++++++
Aexamples/hello-with-docker/Dockerfile | 7+++++++
Aexamples/hello-with-docker/Fes.toml | 6++++++
Aexamples/hello-with-docker/www/index.lua | 8++++++++
4 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,20 @@ +FROM golang:1.25-alpine AS builder + +WORKDIR /src + +COPY go.mod go.sum ./ +RUN go mod download + +COPY . . + +RUN go build -o /fes main.go + +FROM alpine:latest + +RUN apk add --no-cache bash lua5.4 + +COPY --from=builder /fes /usr/local/bin/fes + +WORKDIR /app + +CMD ["fes", "run", "/app"] diff --git a/examples/hello-with-docker/Dockerfile b/examples/hello-with-docker/Dockerfile @@ -0,0 +1,7 @@ +FROM fes:latest + +COPY . /app + +WORKDIR /app + +CMD ["fes", "run", "/app"] diff --git a/examples/hello-with-docker/Fes.toml b/examples/hello-with-docker/Fes.toml @@ -0,0 +1,5 @@ +[app] + +name = "hello" +version = "0.0.1" +authors = ["vx-clutch"] +\ No newline at end of file diff --git a/examples/hello-with-docker/www/index.lua b/examples/hello-with-docker/www/index.lua @@ -0,0 +1,8 @@ +local fes = require("fes") +local site = fes.fes() + +site.copyright = fes.util.copyright("https://fsd.vxserver.dev", "fSD") + +site:h1("Hello, World!") + +return site