Skip to content

Commit 870c2d9

Browse files
committed
switch to port 80
1 parent d3d1abf commit 870c2d9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker-cloud/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WORKDIR /
2323

2424
COPY --from=build /out /out
2525

26-
EXPOSE 8080
26+
EXPOSE 80
2727

2828
USER nonroot:nonroot
2929

docker-cloud/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Config struct {
1414
func main() {
1515
port := os.Getenv("HTTP_PORT")
1616
if port == "" {
17-
port = "8080"
17+
port = "80"
1818
}
1919

2020
config := Config{

docker-cloud/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func TestPing(t *testing.T) {
4141
var resp *http.Response
4242
err = pool.Retry(func() error {
4343
var err error
44-
t.Log(resource.GetPort("8080/tcp"))
45-
resp, err = http.Get(fmt.Sprint("http://localhost:", resource.GetPort("8080/tcp"), "/ping"))
44+
t.Log(resource.GetPort("80/tcp"))
45+
resp, err = http.Get(fmt.Sprint("http://localhost:", resource.GetPort("80/tcp"), "/ping"))
4646
if err != nil {
4747
t.Log("container not ready, waiting...")
4848
return err

0 commit comments

Comments
 (0)