refactor(backend): changes to convert the backend to strictly the app

This commit is contained in:
2025-07-19 11:37:13 -05:00
parent 5cc1fbe919
commit 1e649d1f23
3 changed files with 73 additions and 15 deletions

View File

@@ -3,19 +3,25 @@ FROM golang:1.24.4-alpine3.22 AS builder
WORKDIR /app
COPY go.mod go.sum ./
# COPY VERSION ./VERSION
COPY docs /app/docs/
COPY frontend /app/frontend/
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o lst_go ./main.go
FROM alpine:latest
WORKDIR /root/
# Copy only the binary (no need for source files)
RUN mkdir -p ./docs ./frontend
COPY --from=builder /app/lst_go .
# COPY --from=builder /app/VERSION ./
COPY --from=builder /app/docs ./docs/
COPY --from=builder /app/frontend ./frontend/
# create the volume paths
RUN mkdir -p /data