-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from MikeMwita/devmike
Add Dockerfile
- Loading branch information
Showing
3 changed files
with
106 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<!-- | ||
Pull request title should be `MO-XXX - description` or `NOISSUE - description` where XXX is ID of issue that this PR relate to. | ||
For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. | ||
For a timely review/response, please avoid force-pushing additional commits if your PR already received reviews or comments. | ||
Before submitting a Pull Request, please ensure that you have: | ||
- 📖 Read the Contributing guide: https://github.com/0x6flab/mpesaoverlay/blob/main/CONTRIBUTING.md | ||
- 📖 Read the Code of Conduct: https://github.com/0x6flab/mpesaoverlay/blob/main/CODE_OF_CONDUCT.md | ||
- Provide tests for your changes. | ||
- Use descriptive commit messages. If you need help you can check out https://pypi.org/project/commitgpt/ | ||
- Comment your code where appropriate. | ||
- Squash your commits | ||
- Update any related documentation. | ||
--> | ||
|
||
# What type of PR is this? | ||
|
||
<!-- | ||
(check all applicable) | ||
--> | ||
|
||
- [ ] Refactor | ||
- [ ] Feature | ||
- [ ] Bug Fix | ||
- [ ] Optimization | ||
- [ ] Documentation Update | ||
- [ ] Dependency Update | ||
|
||
# Description | ||
|
||
<!-- | ||
Please describe your pull request. | ||
--> | ||
|
||
## Changes that modify/break current functionality | ||
|
||
<!-- | ||
Please describe the changes that modify/break current functionality. | ||
--> | ||
|
||
## Related Tickets & Documents | ||
|
||
<!-- | ||
For pull requests that relate or close an issue, please include them below. We like to follow [Github's guidance on linking issues to pull requests](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue). | ||
For example having the text: "closes #1234" would connect the current pull request to issue 1234. And when we merge the pull request, Github will automatically close the issue. | ||
--> | ||
|
||
- Related Issue # | ||
- Closes # | ||
|
||
## Added/updated tests? | ||
|
||
<!-- | ||
Please confirm the following before submitting your PR, thank you! | ||
--> | ||
|
||
- [ ] Yes | ||
- [ ] No, and this is why: _please replace this line with details on why tests | ||
have not been included_ | ||
- [ ] I need help with writing tests | ||
|
||
## Added/updated documentation | ||
|
||
<!-- | ||
Please confirm the following before submitting your PR, thank you! | ||
--> | ||
|
||
- [ ] Yes | ||
- [ ] No, and this is why: _please replace this line with details on why | ||
documentation has not been included_ | ||
- [ ] I need help with writing documentation | ||
|
||
### Notes | ||
|
||
<!-- | ||
Please provide any additional information you feel is important. | ||
--> |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM golang:alpine as builder | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN go build -o main . | ||
|
||
FROM scratch | ||
|
||
COPY --from=builder /app/main /app/main | ||
|
||
EXPOSE 5556 | ||
|
||
CMD ["/app/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