| garciadeblas | 302826f | 2024-07-09 14:32:13 +0200 | [diff] [blame] | 1 | # |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | # you may not use this file except in compliance with the License. |
| 4 | # You may obtain a copy of the License at |
| 5 | # |
| 6 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 8 | # Unless required by applicable law or agreed to in writing, software |
| 9 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 11 | # implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | FROM ubuntu:22.04 |
| 16 | |
| 17 | RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ |
| 18 | DEBIAN_FRONTEND=noninteractive apt-get --yes install \ |
| 19 | python3=3.10.* \ |
| 20 | python3-pip=22.0.* \ |
| 21 | curl=7.81.* \ |
| 22 | unzip \ |
| 23 | && rm -rf /var/lib/apt/lists/* |
| 24 | |
| 25 | # Download protobuf zip |
| 26 | ENV PROTOC_URL="https://github.com/protocolbuffers/protobuf/releases/download/v27.2/protoc-27.2-linux-x86_64.zip" |
| 27 | ENV PROTOC_ZIP="protoc-27.2-linux-x86_64.zip" |
| 28 | |
| 29 | RUN curl -LO ${PROTOC_URL} && \ |
| 30 | unzip -o ${PROTOC_ZIP} -d ./proto && \ |
| 31 | install -m 0755 ./proto/bin/protoc /usr/local/bin && \ |
| 32 | cp -R ./proto/include/* /usr/local/include/ |
| 33 | |
| 34 | ENTRYPOINT [ "/usr/local/bin/protoc" ] |
| 35 | |