Skip to content

Commit

Permalink
DEBIAN_FRONTEND needs to be declared after FROM in order to have any …
Browse files Browse the repository at this point in the history
…effect
  • Loading branch information
ehough committed Jun 7, 2018
1 parent 0d9e4a5 commit e71d97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Alpine can only be used if/when this bug is fixed: https://bugs.alpinelinux.org/issues/8470
ARG BUILD_FROM=debian:stretch-slim

FROM $BUILD_FROM

# https://github.com/ehough/docker-nfs-server/pull/3#issuecomment-387880692
ARG DEBIAN_FRONTEND=noninteractive

FROM $BUILD_FROM

# kmod is needed for lsmod, and libcap2-bin is needed for confirming Linux capabilities
RUN apt-get update && \
apt-get install -y --no-install-recommends nfs-kernel-server kmod libcap2-bin && \
Expand Down

0 comments on commit e71d97a

Please sign in to comment.