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
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.example/
.github/
.vagrant/
.DS_Store
.Thumbs.db
node_modules/
ssl-server.pem
npm-debug.log
*.sublime*
.env
.idea/
.*.dockerfile.*.dockerfile.*.dockerfile.*.dockerfile
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM node:8-alpine

# Make sure we have global dependencies
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh && \
yarn global add @vue/cli @vue/cli-init

# Use /home/quasar for all CLI related code
WORKDIR /home/quasar

# Cache Dependencies
COPY package.json yarn.lock ./
RUN yarn --pure-lockfile

# Copy CLI Source
COPY . .

# Link CLI to Yarn and create App Dir
RUN yarn link && mkdir -p /usr/src/app

# Open port 8080 by default
EXPOSE 8080

# Set the working directroy to the App Dir
WORKDIR /usr/src/app
ENTRYPOINT [ "quasar" ]
CMD [ "-v" ]

#TODO: Possible file permissions: myapp:quasar user:group