Skip to content

Commit 0ce683b

Browse files
DRoetphanan
authored andcommitted
Update dockerize cookbook (#1944)
* 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 * Update dockerize-vuejs-app.md
1 parent 22567e4 commit 0ce683b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/v2/cookbook/dockerize-vuejs-app.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ So you built your first Vue.js app using the amazing [Vue.js webpack template](h
1111
Let's start by creating a `Dockerfile` in the root folder of our project:
1212

1313
```docker
14-
FROM node:9.11.1-alpine
14+
FROM node:lts-alpine
1515
1616
# install simple http server for serving static content
1717
RUN npm install -g http-server
@@ -63,15 +63,15 @@ Let's refactor our `Dockerfile` to use NGINX:
6363

6464
```docker
6565
# build stage
66-
FROM node:9.11.1-alpine as build-stage
66+
FROM node:lts-alpine as build-stage
6767
WORKDIR /app
6868
COPY package*.json ./
6969
RUN npm install
7070
COPY . .
7171
RUN npm run build
7272
7373
# production stage
74-
FROM nginx:1.13.12-alpine as production-stage
74+
FROM nginx:stable-alpine as production-stage
7575
COPY --from=build-stage /app/dist /usr/share/nginx/html
7676
EXPOSE 80
7777
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)