tutu / Dockerfile
hxger's picture
Update Dockerfile
028f15c verified
raw
history blame contribute delete
515 Bytes
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"]