Skip to content

Commit

Permalink
docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
BitDesert committed Jul 25, 2020
1 parent cd3f23a commit 0f32e36
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .docker/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
events{}

http {
include /etc/nginx/mime.types;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
npm-debug.log
dist
desktop-app/dist
desktop-app/build
19 changes: 19 additions & 0 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release Drafter

on:
push:

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: nault/nault
tag_with_ref: true
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# build the angular app
FROM node:12 AS build
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y \
libudev-dev \
libusb-1.0-0-dev
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run wallet:build

# build the nginx hosting container
FROM nginx:1.19-alpine
COPY .docker/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist /usr/share/nginx/html

0 comments on commit 0f32e36

Please sign in to comment.