Skip to content

Commit

Permalink
update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
pingtest committed Jan 29, 2020
1 parent 40455f3 commit d8ac3e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ FROM golang:alpine AS build

RUN apk add --no-cache -U make git

COPY . /src/project
RUN cd /src/project
WORKDIR /src/project

RUN export CGO_ENABLED=0 &&\
make &&\
cp cmd/registry/registry /
RUN cp etc/registry.sample.conf /registry.conf
cp cmd/registry/registry /registry &&\
cp etc/registry.sample.conf /registry.conf

FROM golang:alpine

Expand Down

0 comments on commit d8ac3e1

Please sign in to comment.