Skip to content

Commit

Permalink
Merge pull request devfile-samples#14 from johnmcollier/patch-2
Browse files Browse the repository at this point in the history
Fix Dockerfile workdir and cmd
  • Loading branch information
yangcao77 authored Jan 26, 2023
2 parents 280e1ce + 0c172c9 commit b9bcef1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM registry.access.redhat.com/ubi9/go-toolset:latest

WORKDIR /app

COPY go.mod ./
RUN go mod download

Expand All @@ -11,4 +9,4 @@ RUN go build -o ./main

EXPOSE 8081

CMD [ "app/main" , "-p=8081"]
CMD [ "./main" , "-p=8081"]

1 comment on commit b9bcef1

@vercel
Copy link

@vercel vercel bot commented on b9bcef1 Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.