Skip to content
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
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:8-alpine as frontend_builder
WORKDIR /wallet
RUN apk add --no-cache make
ADD . /wallet
RUN npm install -g @angular/cli && npm rebuild node-sass && npm i && rm -rf dist/wallet && ng build --aot


FROM nginx:alpine

# copy artifact build from the 'build environment'
COPY --from=frontend_builder /wallet/dist /usr/share/nginx/html

# expose port 80
EXPOSE 80

# run nginx
CMD ["nginx", "-g", "daemon off;"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ make run
## Development server

Run `make run` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.


## Creating a docker container to run locally

```sh
docker build -t wallet .
docker run -p 80:80 wallet
```