refactor(backend): changes to convert the backend to strictly the app
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user