Use noninteractive build in dockerfile (#559)

This commit is contained in:
Jonathan Zernik 2021-01-04 00:09:30 -08:00 committed by GitHub
parent 27b3e1d166
commit 10bd12f2ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,12 @@ FROM python:3.8-slim-buster AS compile-image
WORKDIR /
RUN apt-get update && apt-get install -y libpq-dev gcc libffi-dev build-essential
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y \
libpq-dev \
gcc \
libffi-dev \
build-essential
RUN python -m venv /opt/venv
# Make sure we use the virtualenv:
@ -26,7 +31,8 @@ FROM python:3.8-slim-buster
COPY --from=compile-image /opt/venv /opt/venv
RUN apt-get update && apt-get install -y libpq-dev
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y libpq-dev
EXPOSE 8774
EXPOSE 8994