add env files
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
aovantsev
2025-10-03 13:33:22 +03:00
parent 324e861218
commit d0f14dfca2
22 changed files with 468 additions and 41 deletions

View File

@@ -9,8 +9,9 @@ COPY go.mod go.sum ./
# Download dependencies
RUN go mod download
# Copy source code
# Copy source code and environment files
COPY *.go ./
COPY .env* ./
# Build the application
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
@@ -43,6 +44,9 @@ WORKDIR /root/
# Copy the Go binary from go-builder stage
COPY --from=go-builder /app/main .
# Copy environment files from go-builder stage
COPY --from=go-builder /app/.env* ./
# Copy the React build from frontend-builder stage
COPY --from=frontend-builder /app/frontend/build ./frontend/build