fuck this shit
This commit is contained in:
parent
4e1c629ff3
commit
46129a6693
@ -1,14 +1,13 @@
|
|||||||
FROM golang:latest as builder
|
FROM golang:latest as builder
|
||||||
RUN mkdir -p /go/src/folder
|
|
||||||
WORKDIR /go/src/folder
|
WORKDIR /src
|
||||||
COPY /src .
|
|
||||||
|
|
||||||
RUN go get -u ./...
|
RUN go get -u ./...
|
||||||
RUN go build
|
RUN go build
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=builder /go/src/folder/weatherservice .
|
COPY --from=builder /src/weatherservice .
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
CMD ["/weatherservice"]
|
CMD ["/weatherservice"]
|
||||||
|
Loading…
Reference in New Issue
Block a user