Skip to content

Commit 4291417

Browse files
committed
fix: staging reposcaffolding using 80 port as default
Signed-off-by: Meng JiaFeng <[email protected]>
1 parent 93367e1 commit 4291417

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

staging/dtm-repo-scaffolding-golang-gin/Dockerfile.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ WORKDIR /app
99
COPY --from=build-env /go/src/github.com/[[.Repo.Owner]]/[[.Repo.Name]]/app /app/
1010
CMD ["./app"]
1111
USER 1000
12-
EXPOSE 8080/tcp
12+
EXPOSE 80/tcp

staging/dtm-repo-scaffolding-golang-gin/cmd/_app_name_/main.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ func main() {
1313
router.GET("/albums/:id", album.GetAlbumByID)
1414
router.POST("/albums", album.PostAlbums)
1515
16-
router.Run("localhost:8080")
16+
router.Run("localhost:80")
1717
}

staging/dtm-repo-scaffolding-python-flask/Dockerfile.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ COPY ./app /code/app
1111

1212
USER 1000
1313

14-
CMD ["gunicorn", "--conf", "app/gunicorn.conf.py", "--bind", "0.0.0.0:8080", "wsgi:app"]
14+
CMD ["gunicorn", "--conf", "app/gunicorn.conf.py", "--bind", "0.0.0.0:80", "wsgi:app"]

0 commit comments

Comments
 (0)