File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.9-alpine
1
+ FROM golang:1.9-alpine AS builder
2
2
3
3
# Install curl, git
4
4
RUN apk add --no-cache curl, git
@@ -32,15 +32,15 @@ RUN sh build/fetch_plugins.sh
32
32
33
33
# Setup configuration file
34
34
RUN cp config/config.example.yml config/config.yml \
35
- && sed -i 's!postgres\b !$DB_DIALECT!g' config/config.yml \
36
- && sed -i 's!postgresql://user:password@host/dbname?sslmode=disable!$DB_CONNECTION_STRING!g' config/config.yml \
37
- && sed -i 's!redis://localhost:6379/0!$REDIS_STRING!g' config/config.yml
35
+ && sed -i 's!postgres\b !' " $DB_DIALECT" ' !g' config/config.yml \
36
+ && sed -i 's!postgresql://user:password@host/dbname?sslmode=disable!' " $DB_CONNECTION_STRING" ' !g' config/config.yml \
37
+ && sed -i 's!redis://localhost:6379/0!' " $REDIS_STRING" ' !g' config/config.yml
38
38
39
39
# Install dependencies
40
40
RUN glide install
41
41
42
42
# Build the app
43
- RUN go build -v - o sdb build_sdb.go
43
+ RUN go build -o sdb build_sdb.go
44
44
45
45
RUN mkdir /output/ \
46
46
&& mkdir /output/config \
@@ -54,7 +54,8 @@ FROM alpine
54
54
WORKDIR /app
55
55
COPY --from=builder /output/sdb /app/sdb
56
56
COPY --from=builder /output/config.yml /app/config/config.yml
57
+ RUN chmod +x /app/sdb
57
58
58
- ENTRYPOINT ['. /app/sdb' ]
59
+ ENTRYPOINT [" /app/sdb" ]
59
60
60
61
EXPOSE 5000
You can’t perform that action at this time.
0 commit comments