diff --git a/Dockerfile b/Dockerfile index cec774e..eb32c45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM golang:alpine AS build -WORKDIR /go/src/github.com/cuigh/swirl/ +RUN apk add git +WORKDIR /go/src/swirl/ ADD . . ENV GO111MODULE on RUN CGO_ENABLED=0 go build -ldflags "-s -w" @@ -8,9 +9,9 @@ FROM alpine:3.8 LABEL maintainer="cuigh " WORKDIR /app RUN apk add --no-cache ca-certificates -COPY --from=build /go/src/github.com/cuigh/swirl/swirl . -COPY --from=build /go/src/github.com/cuigh/swirl/config ./config/ -COPY --from=build /go/src/github.com/cuigh/swirl/assets ./assets/ -COPY --from=build /go/src/github.com/cuigh/swirl/views ./views/ +COPY --from=build /go/src/swirl/swirl . +COPY --from=build /go/src/swirl/config ./config/ +COPY --from=build /go/src/swirl/assets ./assets/ +COPY --from=build /go/src/swirl/views ./views/ EXPOSE 8001 ENTRYPOINT ["/app/swirl"]