FROM ubuntu:bionic
ENV NGINX_VERSION 1.14.0-0ubuntu1.9
RUN apt-get update && apt-get install -y curl
RUN apt-get update && apt-get install -y nginx=$NGINX_VERSION
CMD ["nginx", "-g", "daemon off;"]
trying to create a custom nginx docker image but getting error:
E: Version '1.14.0-0ubuntu1.9' for 'nginx' was not found
The command '/bin/sh -c apt-get update && apt-get install -y nginx=$NGINX_VERSION' returned a non-zero code: 100