da / Dockerfile
ykl45's picture
Create Dockerfile
17c0f65 verified
raw
history blame
396 Bytes
FROM golang:1.21 AS builder
ENV CGO_ENABLED=0
ENV SERVER_PORT=7860
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/renqabs/Da.git /app
WORKDIR /app
RUN go mod download
RUN go build -ldflags "-s -w" -o /app/duck2api .
FROM alpine:latest
WORKDIR /app
RUN apk add --no-cache tzdata
COPY --from=builder /app/aurora /app/duck2api
EXPOSE 7860
CMD ["./duck2api"]