Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] add Dockerfile for binary #29

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

tanut32039
Copy link
Contributor

Fixed: #XXXX

Implementation details

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@tanut32039 tanut32039 changed the title [Feature] add artifact when release tag [Feature] add Dockerfile for binary Jan 23, 2025
@nkitlabs nkitlabs changed the base branch from main to remove-chain-pkg January 26, 2025 16:51
dockerfile Outdated
Comment on lines 8 to 13
# Add source files
COPY . .

# install binary
RUN go mod download
RUN make install
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we support on different build/target architects

Copy link
Collaborator

Choose a reason for hiding this comment

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

another question should we label the image?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

another question should we label the image?

Go relayer has it too. Let me add it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should we support on different build/target architects

added

Base automatically changed from remove-chain-pkg to main January 27, 2025 13:52
dockerfile Outdated
wget -c https://musl.cc/x86_64-linux-musl-cross.tgz -O - | tar -xzvv --strip-components 1 -C /usr; \
fi

ADD . .
Copy link
Collaborator

Choose a reason for hiding this comment

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

this add the whole project, should we add .dockerignore file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@nkitlabs nkitlabs requested a review from RogerKSI January 28, 2025 03:24
.dockerignore Outdated
LICENSE
logo.svg
README.md
SECURITY.md

Choose a reason for hiding this comment

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

add end of line.

dockerfile Outdated
@@ -0,0 +1,35 @@
FROM --platform=$BUILDPLATFORM golang:1.22.3-alpine3.19 as build

Choose a reason for hiding this comment

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

file name should be Dockerfile (big D)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants