Skip to content

Commit

Permalink
Separate dockerfile for goreleaser (#432)
Browse files Browse the repository at this point in the history
* Separate dockerfile for goreleaser

* Update goreleaser.yml

Co-authored-by: anniel-stripe <[email protected]>

---------

Co-authored-by: anniel-stripe <[email protected]>
  • Loading branch information
richardm-stripe and anniel-stripe committed Jun 30, 2023
1 parent 63b518f commit 4b5e202
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions goreleaser.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -*- mode: dockerfile -*-

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY stripe-mock /bin/stripe-mock
ENTRYPOINT ["/bin/stripe-mock", "-http-port", "12111", "-https-port", "12112"]
EXPOSE 12111
EXPOSE 12112
1 change: 1 addition & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ nfpms:
- rpm

dockers:
- dockerfile: goreleaser.dockerfile
- image_templates:
- "stripe/stripe-mock:{{ .Tag }}-amd64"
- "stripe/stripe-mock:latest-amd64"
Expand Down

0 comments on commit 4b5e202

Please sign in to comment.