aa1 / Dockerfile
hzwluoye's picture
Update Dockerfile
30636f9 verified
raw
history blame contribute delete
375 Bytes
FROM golang:1.21 AS builder
ENV CGO_ENABLED=0
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/s181462537/aurora.git /app
WORKDIR /app
RUN go mod download
RUN go build -ldflags "-s -w" -o /app/aurora .
FROM alpine:latest
WORKDIR /app
RUN apk add --no-cache tzdata
COPY --from=builder /app/aurora /app/aurora
EXPOSE 8080
CMD ["./aurora"]