This repository was archived by the owner on Jan 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1+ dor-http.Dockerfile
2+ dor-insert.Dockerfile
3+ docker-compose.yml
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ FROM golang:alpine AS build-env
22LABEL maintainer "Ilya Glotov <ilya@ilyaglotov.com>" \
33 repository "https://github.com/ilyaglow/dor"
44
5- ENV CGO_ENABLED 0
5+ ENV CGO_ENABLED=0 \
6+ GO111MODULE=on
67
7- COPY dor.go /go/src/dor/dor.go
8+ COPY . /go/src/dor
89
910RUN apk -U --no-cache add git \
1011 && cd /go/src/dor \
11- && go get -v . \
12- && go build -ldflags="-s -w" -o /dor \
12+ && go build -ldflags="-s -w" -o /dor service/dor-http/dor.go \
1313 && apk del git
1414
1515FROM alpine:edge
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ FROM golang:alpine AS build-env
22LABEL maintainer "Ilya Glotov <ilya@ilyaglotov.com>" \
33 repository "https://github.com/ilyaglow/dor"
44
5- ENV CGO_ENABLED 0
5+ ENV CGO_ENABLED=0 \
6+ GO111MODULE=on
67
7- COPY dor-insert.go /go/src/dor-insert/dor-insert.go
8+ COPY . /go/src/dor
89
910RUN apk -U --no-cache add git \
10- && cd /go/src/dor-insert \
11- && go get -v . \
12- && go build -ldflags="-s -w" -o /dor-insert \
11+ && cd /go/src/dor \
12+ && go build -ldflags="-s -w" -o /dor-insert cmd/dor-insert/dor-insert.go \
1313 && apk del git
1414
1515FROM alpine:edge
You can’t perform that action at this time.
0 commit comments