forked from marcelcorso/gcloud-pubsub-emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (13 loc) · 638 Bytes
/
Dockerfile
File metadata and controls
22 lines (13 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:alpine as builder
RUN apk update && apk upgrade && apk add --no-cache curl git
RUN curl -s https://raw.githubusercontent.com/eficode/wait-for/master/wait-for -o /usr/bin/wait-for
RUN chmod +x /usr/bin/wait-for
RUN go get github.com/prep/pubsubc
###############################################################################
FROM google/cloud-sdk:alpine
COPY --from=builder /usr/bin/wait-for /usr/bin
COPY --from=builder /go/bin/pubsubc /usr/bin
COPY run.sh /run.sh
RUN apk --update add openjdk8-jre netcat-openbsd && gcloud components install beta pubsub-emulator
EXPOSE 8681
CMD /run.sh