Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM golang:1.21 AS builder
|
2 |
+
|
3 |
+
ENV CGO_ENABLED=0
|
4 |
+
|
5 |
+
RUN apk --no-cache add git
|
6 |
+
|
7 |
+
RUN git clone https://github.com/aurora-develop/aurora.git /app
|
8 |
+
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
RUN go mod download
|
12 |
+
|
13 |
+
RUN go build -o /app/aurora .
|
14 |
+
|
15 |
+
FROM alpine:latest
|
16 |
+
|
17 |
+
WORKDIR /app
|
18 |
+
|
19 |
+
COPY --from=builder /app/aurora /app/aurora
|
20 |
+
|
21 |
+
EXPOSE 8080
|
22 |
+
|
23 |
+
CMD ["./aurora"]
|