Skip to content

Instantly share code, notes, and snippets.

@naotaco
Last active January 9, 2019 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naotaco/0b55e6297a11e99366c6a2ec96d11136 to your computer and use it in GitHub Desktop.
Save naotaco/0b55e6297a11e99366c6a2ec96d11136 to your computer and use it in GitHub Desktop.
Use cosmic as nginx env instead of debain/stretch
diff --git a/mainline/stretch/Dockerfile b/mainline/stretch/Dockerfile
index 09e2d84..1f96b37 100644
--- a/mainline/stretch/Dockerfile
+++ b/mainline/stretch/Dockerfile
@@ -1,9 +1,10 @@
-FROM debian:stretch-slim
+FROM ubuntu:cosmic
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
-ENV NGINX_VERSION 1.15.8-1~stretch
-ENV NJS_VERSION 1.15.8.0.2.7-1~stretch
+ENV NGINX_VERSION 1.15.8-1~cosmic
+ENV NJS_VERSION 1.15.8.0.2.7-1~cosmic
RUN set -x \
&& apt-get update \
@@ -33,13 +34,13 @@ RUN set -x \
&& case "$dpkgArch" in \
amd64|i386) \
# arches officialy built by upstream
- echo "deb https://nginx.org/packages/mainline/debian/ stretch nginx" >> /etc/apt/sources.list.d/nginx.list \
+ echo "deb https://nginx.org/packages/mainline/ubuntu/ cosmic nginx" >> /etc/apt/sources.list.d/nginx.list \
&& apt-get update \
;; \
*) \
# we're on an architecture upstream doesn't officially build for
# let's build binaries from the published source packages
- echo "deb-src https://nginx.org/packages/mainline/debian/ stretch nginx" >> /etc/apt/sources.list.d/nginx.list \
+ echo "deb-src https://nginx.org/packages/mainline/ubuntu/ cosmic nginx" >> /etc/apt/sources.list.d/nginx.list \
\
# new directory for storing sources and .deb files
&& tempDir="$(mktemp -d)" \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment