Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HennequinLaura committed Jul 3, 2019
2 parents 91ef2c8 + 05e3ff5 commit 2adae95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build:web

# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist/web /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A free and open source cross platform and a progressive web application (you can
- Windows Store (coming soon)
- Portable Windows Application

#### Build Setup
#### Build

``` bash
# install dependencies
Expand All @@ -27,6 +27,15 @@ npm run lint

---

#### Docker image

The web application is a client side only VueJS SPA. You can run build and a small docker image running nginx on port 80 with the sample Docker file provided:

docker build -t typing_image .
docker run -p 80:80 typing_image

And then open your browser on http://localhost/

## Credits

- Icon by **icon lauk** https://www.iconfinder.com/andhikairfani - Attribution 3.0 Unported (CC BY 3.0)
Expand Down

0 comments on commit 2adae95

Please sign in to comment.