Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -4,19 +4,19 @@ ENV CGO_ENABLED=0
|
|
4 |
|
5 |
RUN apt-get update && apt-get install -y git
|
6 |
|
7 |
-
RUN git clone https://github.com/s181462537/
|
8 |
|
9 |
WORKDIR /app
|
10 |
|
11 |
RUN go mod download
|
12 |
|
13 |
-
RUN go build -ldflags "-s -w" -o /app/
|
14 |
|
15 |
FROM alpine:latest
|
16 |
|
17 |
WORKDIR /app
|
18 |
-
RUN apk add --no-cache tzdata
|
19 |
-
COPY --from=builder /app/
|
20 |
|
21 |
EXPOSE 8080
|
22 |
|
|
|
4 |
|
5 |
RUN apt-get update && apt-get install -y git
|
6 |
|
7 |
+
RUN git clone https://github.com/s181462537/Duck2api.git /app
|
8 |
|
9 |
WORKDIR /app
|
10 |
|
11 |
RUN go mod download
|
12 |
|
13 |
+
RUN go build -ldflags "-s -w" -o /app/duck2api .
|
14 |
|
15 |
FROM alpine:latest
|
16 |
|
17 |
WORKDIR /app
|
18 |
+
#RUN apk add --no-cache tzdata
|
19 |
+
COPY --from=builder /app/duck2api /app/duck2api
|
20 |
|
21 |
EXPOSE 8080
|
22 |
|