# Use an appropriate base image FROM golang:1.19-alpine as build # Set the working directory WORKDIR /app # Copy the project files COPY . . # Build the Niltalk binary RUN go build -o niltalk # Create the final image FROM alpine:latest WORKDIR /app COPY --from=build /app/niltalk . COPY config.toml.sample config.toml # Expose the necessary port EXPOSE 7860 # Run the application ENTRYPOINT ["./niltalk"]