Install python in `prereqs` image (#1350)

Maybe `buildpack-deps` has recently removed python installation by
default and hence is observing some errors.
This commit is contained in:
Eryu Xia 2023-07-28 17:48:44 -07:00 committed by GitHub
parent 9c48d290b2
commit 7c52878457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,6 @@ RUN npm install && \
cp index.html /var/www/html && \
cp dist/main.js /var/www/html/dist
RUN apt-get -qq update && apt-get -qq install -y python
WORKDIR /var/www/html
EXPOSE 8081

View File

@ -54,6 +54,8 @@ FROM node:20.0.0-bullseye AS copy-and-build
ARG MAKEFLAGS=-j8
ARG BAZEL_VERSION=4.1.0
RUN apt-get -qq update && apt-get -qq install -y python
RUN mkdir -p /var/www/html/dist
RUN echo "\nloglevel=error\n" >> $HOME/.npmrc