Skip to content

Commit

Permalink
Dockerfile: move to root to copy sources as-is
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixep committed Aug 10, 2020
1 parent 034358d commit cd8b6f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.14-alpine as builder

RUN apk add --update --no-cache git gcc musl-dev make

ARG MODULE_PATH=${GOPATH}/src/github.com/Pixep/crowlet

COPY . $MODULE_PATH
WORKDIR $MODULE_PATH
RUN make build-static \
&& mkdir -p /opt/bin \
&& mv ./crowlet /opt/bin/crowlet

FROM centurylink/ca-certs

COPY --from=builder /opt/bin/crowlet /opt/bin/crowlet

ENTRYPOINT ["/opt/bin/crowlet"]
16 changes: 0 additions & 16 deletions build/package/Dockerfile

This file was deleted.

0 comments on commit cd8b6f4

Please sign in to comment.