tuichat/Dockerfile
2025-01-10 01:26:41 -06:00

18 lines
195 B
Docker

FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY . .
RUN go mod tidy
RUN go build -o app .
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/app .
EXPOSE 23234
CMD ["./app"]