Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
emre-23 committed Dec 21, 2020
1 parent bf05961 commit 749d5eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:alpine
RUN mkdir /go_challenge
WORKDIR /go_challenge/main
COPY . /go_challenge
RUN mkdir /app
COPY . /app
WORKDIR /app/go_challenge
RUN go build -o main .
CMD ["/go_challenge/main/main"]
CMD ["/app/go_challenge/main"]
2 changes: 1 addition & 1 deletion go_challenge/main/main.go → go_challenge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func index(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello Hepsiburada from Emre")
fmt.Fprintf(w, "<h1>Hello Hepsiburada from Emre</h1>")
}

func main() {
Expand Down

0 comments on commit 749d5eb

Please sign in to comment.