vue builds

pull/429/head
Hunter Long 2020-03-06 18:30:39 -08:00
parent c92f99a455
commit 3781fafdae
1 changed files with 3 additions and 1 deletions

View File

@ -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