move ai python server into seperate repo

This commit is contained in:
2025-01-11 01:44:39 +01:00
parent 489386b492
commit 062e055813
27 changed files with 17 additions and 66 deletions

View File

@@ -1,4 +1,4 @@
# Stage 1: Build the Go application
# --- Stage 1: Build the Go application ---
FROM golang:1.23 AS builder
ENV CGO_ENABLED=0
@@ -8,18 +8,19 @@ ENV GOARCH=amd64
WORKDIR /app
# Copy the Go modules and dependencies
COPY ./golang/go.mod ./golang/go.sum ./
COPY ./src/go.mod ./src/go.sum ./
RUN go mod download
# Copy the source code
COPY ./golang/cmd ./cmd
COPY ./golang/assets ./assets
COPY ./golang/internal ./internal
COPY ./src/cmd ./cmd
COPY ./src/assets ./assets
COPY ./src/internal ./internal
# Build the application
RUN go build -o main cmd/frontend/*
# Stage 2: Run the application
# --- Stage 2: Run the application ---
FROM alpine:latest
ENV DB_HOST="10.99.0.3"
@@ -28,14 +29,12 @@ ENV DB_NAME="crowsnest"
ENV DB_USER="crow"
ENV DB_PASS=""
# Set the working directory
WORKDIR /app
# Copy the built binary from the builder stage
COPY --from=builder /app/main .
COPY ./golang/assets ./assets
COPY ./src/assets ./assets
# Expose the desired port (e.g., 8080)
EXPOSE 8080
# Command to run the application