From 16fc8baaf3e816d55552fdc76b058b50b70f9fdb Mon Sep 17 00:00:00 2001 From: Daan Roet Date: Thu, 17 Jan 2019 12:15:45 +0100 Subject: [PATCH 1/2] Update dockerize cookbook Node 9 has been EOL for a while, this will make sure people will always use the latest LTS version, instead of a hardcoded version number --- src/v2/cookbook/dockerize-vuejs-app.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v2/cookbook/dockerize-vuejs-app.md b/src/v2/cookbook/dockerize-vuejs-app.md index 2cc45b8be4..bc462509a0 100644 --- a/src/v2/cookbook/dockerize-vuejs-app.md +++ b/src/v2/cookbook/dockerize-vuejs-app.md @@ -11,7 +11,7 @@ So you built your first Vue.js app using the amazing [Vue.js webpack template](h Let's start by creating a `Dockerfile` in the root folder of our project: ```docker -FROM node:9.11.1-alpine +FROM node:lts-alpine # install simple http server for serving static content RUN npm install -g http-server @@ -63,7 +63,7 @@ Let's refactor our `Dockerfile` to use NGINX: ```docker # build stage -FROM node:9.11.1-alpine as build-stage +FROM node:lts-alpine as build-stage WORKDIR /app COPY package*.json ./ RUN npm install @@ -71,7 +71,7 @@ COPY . . RUN npm run build # production stage -FROM nginx:1.13.12-alpine as production-stage +FROM nginx:mainline-alpine as production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] From 0d3a628c598005cc22a56731f7c67b1aa759ab33 Mon Sep 17 00:00:00 2001 From: Daan Roet Date: Thu, 17 Jan 2019 12:23:57 +0100 Subject: [PATCH 2/2] Update dockerize-vuejs-app.md --- src/v2/cookbook/dockerize-vuejs-app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/cookbook/dockerize-vuejs-app.md b/src/v2/cookbook/dockerize-vuejs-app.md index bc462509a0..12b282dd32 100644 --- a/src/v2/cookbook/dockerize-vuejs-app.md +++ b/src/v2/cookbook/dockerize-vuejs-app.md @@ -71,7 +71,7 @@ COPY . . RUN npm run build # production stage -FROM nginx:mainline-alpine as production-stage +FROM nginx:stable-alpine as production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]