forked from googleapis/gapic-generator-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 652 Bytes
/
Dockerfile
File metadata and controls
20 lines (15 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.7-slim
# Install system packages.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
pandoc \
&& rm -rf /var/lib/apt/lists/*
# Add protoc and our common protos.
COPY --from=gcr.io/gapic-images/api-common-protos:latest /usr/local/bin/protoc /usr/local/bin/protoc
COPY --from=gcr.io/gapic-images/api-common-protos:latest /protos/ /protos/
# Add our code to the Docker image.
ADD . /usr/src/gapic-generator-python/
# Install the tool within the image.
RUN pip install /usr/src/gapic-generator-python
# Define the generator as an entry point.
ENTRYPOINT ["/usr/src/gapic-generator-python/docker-entrypoint.sh"]