fix: update docker interface

This commit is contained in:
2025-12-27 12:04:04 -05:00
parent 99e437b42b
commit c681e342a0
5 changed files with 19 additions and 12 deletions

View File

@@ -2,19 +2,26 @@ FROM golang:1.25-alpine AS builder
WORKDIR /src WORKDIR /src
RUN apk add --no-cache git build-base
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
RUN go build -o /fes main.go ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64
FROM alpine:latest RUN go build -ldflags="-X fes/modules/version.gitCommit=$(git rev-parse --short HEAD) -s -w" -o fes
RUN apk add --no-cache bash lua5.4 FROM scratch
COPY --from=builder /fes /usr/local/bin/fes COPY --from=builder /src/fes /fes
WORKDIR /app WORKDIR /app
CMD ["fes", "run", "/app"] EXPOSE 8080
ENTRYPOINT ["/fes"]
CMD ["run", "/app"]

View File

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

View File

@@ -0,0 +1,7 @@
services:
hello:
image: git.vxserver.dev/fsd/fes:latest
ports:
- "3000:3000"
volumes:
- ./app:/app