File size: 410 Bytes
b3d2e4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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"]