Skip to content

Commit 0d00f5f

Browse files
committed
Set noninteractive via ARG, per https://serverfault.com/questions/618994
1 parent 877263e commit 0d00f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/Dockerfile.onvif-camera

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build from root of repo with `docker build -t onvif-build -f ./build/Dockerfile.onvif-camera .`
22
FROM ubuntu:22.04 as build
33
WORKDIR /
4-
ENV DEBIAN_FRONTEND=noninteractive
4+
ARG DEBIAN_FRONTEND=noninteractive
55
RUN apt-get update && apt-get upgrade -y
66
RUN apt-get install \
77
flex bison byacc make m4 autoconf unzip \
@@ -19,7 +19,7 @@ RUN cd /onvif-camera-mock && \
1919

2020
# Deployment container
2121
FROM ubuntu:22.04
22-
ENV DEBIAN_FRONTEND=noninteractive
22+
ARG DEBIAN_FRONTEND=noninteractive
2323
RUN apt-get update && \
2424
apt-get install sudo iproute2 \
2525
python3-gi \
@@ -31,4 +31,4 @@ RUN chmod +x /onvif-camera-mock/main.py
3131
EXPOSE 8554
3232
EXPOSE 1000
3333
CMD ["/onvif-camera-mock/main.py", "eth0", "/onvif-camera-mock"]
34-
ENTRYPOINT ["python3"]
34+
ENTRYPOINT ["python3"]

0 commit comments

Comments
 (0)