mirror of
https://github.com/hanzo-go/sendgrid.git
synced 2026-10-30 15:05:38 +00:00
24 lines
601 B
Docker
24 lines
601 B
Docker
FROM golang:1.9.1
|
|
|
|
ENV OAI_SPEC_URL="https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json"
|
|
WORKDIR /root
|
|
|
|
# Install Prism
|
|
ADD https://raw.githubusercontent.com/stoplightio/prism/master/install.sh install.sh
|
|
RUN sh ./install.sh && \
|
|
rm ./install.sh
|
|
|
|
# Get sendgrid-go
|
|
RUN mkdir -p /go/src/github.com/sendgrid && \
|
|
cd /go/src/github.com/sendgrid && \
|
|
git clone https://www.github.com/sendgrid/sendgrid-go && \
|
|
cd sendgrid-go && \
|
|
go get
|
|
|
|
COPY entrypoint.sh entrypoint.sh
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
COPY get-version.go get-version.go
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|