You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-15 00:15:15 +02:00
fix docker build for pilu/fresh
This commit is contained in:
@ -24,6 +24,9 @@ RUN GO111MODULE=on go get -u github.com/geeks-accelerator/swag/cmd/swag
|
|||||||
# Change dir to project base.
|
# Change dir to project base.
|
||||||
WORKDIR $GOPATH/src/gitlab.com/geeks-accelerator/oss/saas-starter-kit
|
WORKDIR $GOPATH/src/gitlab.com/geeks-accelerator/oss/saas-starter-kit
|
||||||
|
|
||||||
|
# Build and (re)start go apps after saving/creating/deleting source files.
|
||||||
|
RUN GO111MODULE=off go get github.com/pilu/fresh
|
||||||
|
|
||||||
# Enable go modules.
|
# Enable go modules.
|
||||||
ARG GOPROXY=https://goproxy.io
|
ARG GOPROXY=https://goproxy.io
|
||||||
ENV GOPROXY=$GOPROXY
|
ENV GOPROXY=$GOPROXY
|
||||||
@ -31,7 +34,6 @@ ENV GO111MODULE="on"
|
|||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go get github.com/pilu/fresh
|
|
||||||
|
|
||||||
FROM build_base_golang AS dev
|
FROM build_base_golang AS dev
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@ RUN apk --update --no-cache add \
|
|||||||
# Change dir to project base.
|
# Change dir to project base.
|
||||||
WORKDIR $GOPATH/src/gitlab.com/geeks-accelerator/oss/saas-starter-kit
|
WORKDIR $GOPATH/src/gitlab.com/geeks-accelerator/oss/saas-starter-kit
|
||||||
|
|
||||||
|
# Build and (re)start go apps after saving/creating/deleting source files.
|
||||||
|
RUN GO111MODULE=off go get github.com/pilu/fresh
|
||||||
|
|
||||||
# Enable go modules.
|
# Enable go modules.
|
||||||
ARG GOPROXY=https://goproxy.io
|
ARG GOPROXY=https://goproxy.io
|
||||||
ENV GOPROXY=$GOPROXY
|
ENV GOPROXY=$GOPROXY
|
||||||
@ -15,7 +18,6 @@ ENV GO111MODULE="on"
|
|||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go get github.com/pilu/fresh
|
|
||||||
|
|
||||||
FROM build_base_golang AS dev
|
FROM build_base_golang AS dev
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user