forked from devfile-samples/devfile-sample-go-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Dockerfile to COPY all files
Signed-off-by: Maysun J Faisal <[email protected]>
- Loading branch information
1 parent
9a5a02a
commit 2ec3a1f
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
FROM registry.access.redhat.com/ubi9/go-toolset:1.18.9-14 | ||
|
||
COPY go.mod ./ | ||
COPY . . | ||
RUN go mod download | ||
|
||
COPY *.go ./ | ||
|
||
RUN go build -o ./main | ||
|
||
ENV PORT 8081 | ||
EXPOSE 8081 | ||
|
||
CMD [ "./main" , "-p=8081"] | ||
CMD [ "./main" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters