Docker image first version

This commit is contained in:
2025-12-26 22:03:49 -05:00
parent 56f22bb472
commit 99e437b42b
4 changed files with 40 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -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"]

View File

@@ -0,0 +1,7 @@
FROM fes:latest
COPY . /app
WORKDIR /app
CMD ["fes", "run", "/app"]

View File

@@ -0,0 +1,5 @@
[app]
name = "hello"
version = "0.0.1"
authors = ["vx-clutch"]

View File

@@ -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