We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3c6c28 commit 4c06786Copy full SHA for 4c06786
dev-env/app/Dockerfile
@@ -1,5 +1,13 @@
1
-FROM alpine:latest
+FROM golang:1.11-alpine
2
3
RUN apk --no-cache add ca-certificates
4
5
-CMD ["/app_binary/hercules"]
+# git is a prereq of go get
6
+RUN apk --update add git
7
+
8
+# get "fresh" - rebuilds the server whenever files change
9
+RUN go get github.com/pilu/fresh
10
11
+WORKDIR /go/src/github.com/kshitij10496/hercules
12
13
+CMD ["fresh"]
dev-env/docker-compose.yml
@@ -16,7 +16,7 @@ services:
16
ports:
17
- "8070:8080"
18
volumes:
19
- - ./binary:/app_binary
+ - ..:/go/src/github.com/kshitij10496/hercules
20
networks:
21
app_network:
22
environment:
0 commit comments