Move dependencies to start of dockerfile

pull/3/head
thoscut 2020-02-05 21:58:01 +01:00 committed by GitHub
parent 1117269937
commit 2159920ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
FROM golang:1.13-alpine3.10 AS build-env FROM golang:1.13-alpine3.10 AS build-env


#Build deps
RUN apk --no-cache add build-base git

#Setup #Setup
COPY . /src/gitea-group-sync COPY . /src/gitea-group-sync
WORKDIR /src/gitea-group-sync WORKDIR /src/gitea-group-sync


#Build deps
RUN apk --no-cache add build-base git

RUN go get gopkg.in/ldap.v3 && go get gopkg.in/robfig/cron.v3 && go build RUN go get gopkg.in/ldap.v3 && go get gopkg.in/robfig/cron.v3 && go build


FROM alpine:3.10 FROM alpine:3.10