chat-qq / Dockerfile
slimshadow's picture
Upload 41 files
b3d2e4b verified
raw
history blame contribute delete
410 Bytes
# 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"]