Skip to content

Commit

Permalink
Merge pull request #5 from hverr/small_fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
hverr committed Feb 25, 2016
2 parents c709f5a + defb539 commit 9ac5759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go-redirect [![CircleCI branch](https://img.shields.io/circleci/project/hverr/go-redirect/master.svg)]()
go-redirect [![CircleCI branch](https://img.shields.io/circleci/project/hverr/go-redirect/master.svg)](https://circleci.com/gh/hverr/go-redirect/)
===========

Redirect HTTP to HTTPS with Docker
Expand All @@ -25,8 +25,7 @@ All HTTP requests will hit this image and be redirected to make HTTPS request. T

Assuming you have go installed, do the following:
```sh
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s'
go build
docker build -t go-ssl-redirect .
docker run go-ssl-redirect
```
I am doing the build outside of a Docker container so that I can reduce the size of the image. The official GoLang container is 725 MB in size. By doing it this way, this entire container is only 5.5MB
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ experimental:
- master
dependencies:
override:
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s'
- CGO_ENABLED=0 GOOS=linux go build -a
- docker build -t "$DOCKER_USER"/go-ssl-redirect:$CIRCLE_TAG .
test:
override:
Expand Down

0 comments on commit 9ac5759

Please sign in to comment.