mirror of https://github.com/statping/statping
vue builds
parent
c92f99a455
commit
3781fafdae
|
@ -7,6 +7,7 @@ RUN yarn install
|
||||||
COPY ./frontend .
|
COPY ./frontend .
|
||||||
RUN yarn build && rm -rf node_modules
|
RUN yarn build && rm -rf node_modules
|
||||||
|
|
||||||
|
|
||||||
# Statping Golang BACKEND building from source
|
# Statping Golang BACKEND building from source
|
||||||
# Creates "/go/bin/statping" and "/usr/local/bin/sass" for copying
|
# Creates "/go/bin/statping" and "/usr/local/bin/sass" for copying
|
||||||
FROM golang:1.14-alpine AS backend
|
FROM golang:1.14-alpine AS backend
|
||||||
|
@ -25,10 +26,11 @@ RUN go get github.com/stretchr/testify/assert && \
|
||||||
go get github.com/cortesi/modd/cmd/modd && \
|
go get github.com/cortesi/modd/cmd/modd && \
|
||||||
go get github.com/crazy-max/xgo
|
go get github.com/crazy-max/xgo
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=frontend /statping/dist ./source/
|
COPY --from=frontend /statping/dist/ ./source/dist/
|
||||||
RUN make clean generate embed build
|
RUN make clean generate embed build
|
||||||
RUN chmod a+x statping && mv statping /go/bin/statping
|
RUN chmod a+x statping && mv statping /go/bin/statping
|
||||||
|
|
||||||
|
|
||||||
# Statping main Docker image that contains all required libraries
|
# Statping main Docker image that contains all required libraries
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache add libgcc libstdc++ curl jq
|
RUN apk --no-cache add libgcc libstdc++ curl jq
|
||||||
|
|
Loading…
Reference in New Issue