2020-02-28 06:37:48 +00:00
|
|
|
FROM golang:1.13.5-alpine
|
2019-12-28 09:01:07 +00:00
|
|
|
LABEL maintainer="Hunter Long (https://github.com/hunterlong)"
|
2018-12-18 17:49:02 +00:00
|
|
|
ARG VERSION
|
2020-02-28 06:37:48 +00:00
|
|
|
RUN apk add --update --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl jq libsass nodejs nodejs-npm
|
|
|
|
RUN npm install -g yarn
|
|
|
|
|
2018-12-18 17:49:02 +00:00
|
|
|
RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \
|
2018-08-18 00:07:33 +00:00
|
|
|
chmod +x /usr/local/bin/sass
|
2020-02-28 06:37:48 +00:00
|
|
|
|
2018-12-04 04:17:29 +00:00
|
|
|
WORKDIR /go/src/github.com/hunterlong/statping
|
2020-02-28 06:37:48 +00:00
|
|
|
|
|
|
|
ADD go.mod go.sum version.txt ./
|
|
|
|
|
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
RUN go get github.com/stretchr/testify/assert && \
|
|
|
|
go get golang.org/x/tools/cmd/cover && \
|
|
|
|
go get github.com/mattn/goveralls && \
|
|
|
|
go install github.com/mattn/goveralls && \
|
|
|
|
go get github.com/rendon/testcli && \
|
|
|
|
go get github.com/robertkrimen/godocdown/godocdown && \
|
|
|
|
go get github.com/crazy-max/xgo && \
|
|
|
|
go get github.com/GeertJohan/go.rice && \
|
|
|
|
go get github.com/GeertJohan/go.rice/rice && \
|
|
|
|
go get github.com/axw/gocov/gocov && \
|
|
|
|
go get github.com/matm/gocov-html && \
|
|
|
|
go get github.com/fatih/structs && \
|
|
|
|
go get github.com/ararog/timeago && \
|
|
|
|
go get gopkg.in/natefinch/lumberjack.v2 && \
|
|
|
|
go get golang.org/x/crypto/bcrypt && \
|
|
|
|
go get github.com/cortesi/devd/cmd/devd && \
|
2020-02-28 07:56:17 +00:00
|
|
|
env GO111MODULE=on go get github.com/cortesi/modd/cmd/modd
|
2020-02-28 06:37:48 +00:00
|
|
|
|
|
|
|
ADD frontend/package.json frontend/yarn.lock ./frontend/
|
|
|
|
|
|
|
|
RUN cd frontend && yarn install --pure-lockfile --network-timeout 1000000 && \
|
|
|
|
yarn cache clean
|
2018-08-19 08:48:02 +00:00
|
|
|
|
2018-12-18 17:49:02 +00:00
|
|
|
ENV IS_DOCKER=true
|
2020-02-28 06:37:48 +00:00
|
|
|
ENV STATPING_DIR=/go/src/github.com/hunterlong/statping
|
|
|
|
ENV PORT=8585
|
|
|
|
EXPOSE 8585
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
VOLUME /go/src/github.com/hunterlong/statping
|
2018-11-06 01:34:02 +00:00
|
|
|
|
2020-02-28 06:37:48 +00:00
|
|
|
CMD /go/src/github.com/hunterlong/statping/dev/dev-env.sh
|