[go: nahoru, domu]

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

feat: modifying proto library generation and optimizing docker files. #52

Merged
Prev Previous commit
Reveting the base docker image to use marketplace.gcr.io
  • Loading branch information
jstraceski committed Mar 20, 2024
commit cc7b02b13b486a3ba294c85178518e2389612525
12 changes: 9 additions & 3 deletions callouts/python/extproc/example/common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Build the proto libraries from envoy git using buf.
# Build the proto libraries from the envoy git repo using buf.
FROM bufbuild/buf as BUF
RUN apk add git
COPY ./buf.gen.yaml ./buf.gen.yaml
RUN buf -v generate https://github.com/envoyproxy/envoy.git#subdir=api --path envoy/service/ext_proc/v3/external_processor.proto --include-imports

# Build the callout service.
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y python3-grpcio --no-install-recommends --no-install-suggests
FROM marketplace.gcr.io/google/debian12

# Install pip for package management.
RUN apt-get update && apt-get install -y python3-pip --no-install-recommends --no-install-suggests

# Use pip to install requirements.
COPY ./requirements.txt .
RUN pip install -r requirements.txt --break-system-packages --root-user-action=ignore

WORKDIR /home/callouts/python

Expand Down
Loading