Update Dockerfile
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
|
@@ -1,11 +1,5 @@
|
|
| 1 |
FROM golang:alpine AS builder
|
|
|
|
| 2 |
WORKDIR /app
|
| 3 |
COPY . .
|
| 4 |
-
RUN
|
| 5 |
-
|
| 6 |
-
FROM alpine
|
| 7 |
-
WORKDIR /app
|
| 8 |
-
COPY --from=builder /app/go-proxy-bingai .
|
| 9 |
-
|
| 10 |
-
EXPOSE 8080
|
| 11 |
-
CMD ["/app/go-proxy-bingai"]
|
|
|
|
| 1 |
FROM golang:alpine AS builder
|
| 2 |
+
RUN apk --no-cache add git
|
| 3 |
WORKDIR /app
|
| 4 |
COPY . .
|
| 5 |
+
RUN git clone https://github.com/adams549659584/go-proxy-bingai.git /workspace/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|