Skip to content

Instantly share code, notes, and snippets.

@jacoyutorius
Last active October 19, 2019 05:03
Show Gist options
  • Save jacoyutorius/f0a9125a77f4c57b1d734696fce88647 to your computer and use it in GitHub Desktop.
Save jacoyutorius/f0a9125a77f4c57b1d734696fce88647 to your computer and use it in GitHub Desktop.
Vue on docker

Vue dev container

$ docker-compose up -d
$ docker exec -it vue-sandbox_vue_1 sh

versions

/app # node -v
v10.16.3
/app # vue -V
@vue/cli 4.0.4
version: "3.7"
services:
vue:
build: .
volumes:
- .:/app
ports:
- "8080:8080"
stdin_open: true
tty: true
command: /bin/sh
FROM node:10.16.3-alpine
WORKDIR /app
RUN apk update && \
npm install -g npm @vue/cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment