mirror of https://github.com/statping/statping
docker dev image
parent
16c6b601a7
commit
1a04f75aa7
|
@ -1,6 +1,7 @@
|
||||||
FROM golang:1.10.3-alpine
|
FROM golang:1.10.3-alpine
|
||||||
MAINTAINER "Hunter Long (https://github.com/hunterlong)"
|
MAINTAINER "Hunter Long (https://github.com/hunterlong)"
|
||||||
# Statup 'test' image for running a full test using the production environment
|
# Statup 'test' image for running a full test using the production environment
|
||||||
|
|
||||||
RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl
|
RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl
|
||||||
|
|
||||||
RUN curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep && \
|
RUN curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep && \
|
||||||
|
@ -13,7 +14,6 @@ ENV IS_DOCKER=true
|
||||||
|
|
||||||
WORKDIR $GOPATH/src/github.com/hunterlong/statup
|
WORKDIR $GOPATH/src/github.com/hunterlong/statup
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN ls
|
|
||||||
|
|
||||||
RUN make dev-deps && make install
|
RUN make dev-deps && make install
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
2
Makefile
2
Makefile
|
@ -70,7 +70,7 @@ docker-run: docker
|
||||||
docker run -t -p 8080:8080 hunterlong/statup:latest
|
docker run -t -p 8080:8080 hunterlong/statup:latest
|
||||||
|
|
||||||
docker-dev:
|
docker-dev:
|
||||||
docker build -t hunterlong/statup:dev -f ./.dev/Dockerfile .
|
docker build -t hunterlong/statup:dev -f Dockerfile-dev .
|
||||||
|
|
||||||
docker-run-dev: clean docker-dev
|
docker-run-dev: clean docker-dev
|
||||||
docker run -t -p 8080:8080 hunterlong/statup:dev
|
docker run -t -p 8080:8080 hunterlong/statup:dev
|
||||||
|
|
Loading…
Reference in New Issue