Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Dockerize quasar-cli #211

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Dockerize quasar-cli #211

wants to merge 1 commit into from

Conversation

PhearZero
Copy link

@PhearZero PhearZero commented Nov 30, 2018

Adding basic Dockerfile with quasar-cli as yarn link. This can be used as a base image for other apps to build on top of. Uses Alpine Linux for small footprint for the CLI

  • docker run quasar/cli
  • docker run myapp

Other information:
Example CLI Use

docker run -it -v `pwd`:/usr/src/app quasar/cli init

Example App Dockerfile

FROM quasar/cli

COPY package.json yarn.lock ./
RUN yarn --pure-lockfile

COPY . .

CMD [ "dev" ]

EXPOSE 8080

Example App Run:

docker build -t myapp .
# Live reloading needs volume mapping
docker run -it -p 8080:8080 -v `pwd`:/usr/src/app myapp 

quasarframework/quasar#2759

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant