Skip to content

Commit

Permalink
Add gcc dependency in flow deploy docker file (#1840)
Browse files Browse the repository at this point in the history
# Description

Please add an informative description that covers that changes made by
the pull request and link all relevant issues.
In MacOS, docker will build failed if not install gcc

# All Promptflow Contribution checklist:
- [ ] **The pull request does not introduce [breaking changes].**
- [ ] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

## General Guidelines and Best Practices
- [ ] Title of the pull request is clear and informative.
- [ ] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [ ] Pull request includes test coverage for the included changes.

---------

Co-authored-by: Ying Chen <[email protected]>
  • Loading branch information
YingChen1996 and Ying Chen authored Jan 26, 2024
1 parent d40cf22 commit 2d5a29b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/promptflow/promptflow/_sdk/data/docker/Dockerfile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ WORKDIR /
COPY ./flow/{{env.python_requirements_txt}} /flow/{{env.python_requirements_txt}}
{% endif %}

# gcc is for build psutil in MacOS
RUN apt-get update && apt-get install -y runit gcc

# create conda environment
{% if env.conda_file %}
COPY ./flow/{{env.conda_file}} /flow/{{env.conda_file}}
Expand Down Expand Up @@ -44,8 +47,6 @@ COPY ./flow /flow
RUN conda run -n {{env.conda_env_name}} sh /flow/{{ env.setup_sh }}
{% endif %}

RUN apt-get update && apt-get install -y runit

EXPOSE 8080

COPY ./connections/* /connections/
Expand Down

0 comments on commit 2d5a29b

Please sign in to comment.