File size: 515 Bytes
95b4958
 
028f15c
 
95b4958
 
 
 
 
 
028f15c
95b4958
028f15c
95b4958
 
 
 
 
 
 
 
 
 
028f15c
 
95b4958
 
028f15c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM golang:alpine AS builder

RUN apk add --no-cache git

ENV CGO_ENABLED=0 \
    GO111MODULE=on \
    GOOS=linux

WORKDIR /build

RUN git clone https://github.com/deanxv/chutesAI2api.git .

RUN go mod download
RUN go build -trimpath -ldflags "-s -w" -o /app/chutesai2api

FROM alpine:latest

RUN apk add --no-cache \
    ca-certificates \
    tzdata

COPY --from=builder /app/chutesai2api /chutesai2api

RUN mkdir -p /app/chutesai2api/data

EXPOSE 7011
WORKDIR /app/chutesai2api/data
ENTRYPOINT ["/chutesai2api"]