Skip to content

Update dockerize cookbook #1944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/v2/cookbook/dockerize-vuejs-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -63,15 +63,15 @@ 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
COPY . .
RUN npm run build

# production stage
FROM nginx:1.13.12-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;"]
Expand Down