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

fix build agent and task comman for image booting #501

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,21 @@ RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommend
python3-dev \
jq vim \
ca-certificates \
gcc \
Copy link
Collaborator

@wangyoucao577 wangyoucao577 Dec 20, 2024

Choose a reason for hiding this comment

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

It's an runtime dockerfile rather than for build. The docker image generated by it will be used for deployment, rather than debugging. Here's the build dockerfile that including all the build tools. https://github.com/TEN-framework/ten_agent_build

&& apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*

WORKDIR /app

COPY --from=builder /app/agents/.release/ agents/
COPY --from=builder /app/agents/ agents/
COPY --from=builder /app/server/bin/api /app/server/bin/api
COPY --from=builder /usr/local/lib /usr/local/lib
COPY --from=builder /usr/lib/python3 /usr/lib/python3
COPY --from=builder /usr/local/bin/ /usr/local/bin/
COPY --from=builder /usr/local/ten_gn/ /usr/local/ten_gn/
COPY --from=builder /usr/local/go/ /usr/local/go/

EXPOSE 8080
ENV PATH=/usr/local/go/bin:/usr/local/ten_gn:$PATH

ENV CGO_ENABLED=1

ENTRYPOINT ["/app/server/bin/api"]
EXPOSE 8080