docker hub
This commit is contained in:
parent
cd3f23a758
commit
0f32e36dc7
4 changed files with 53 additions and 0 deletions
14
.docker/nginx.conf
Normal file
14
.docker/nginx.conf
Normal file
|
|
@ -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
.dockerignore
Normal file
5
.dockerignore
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
node_modules
|
||||
npm-debug.log
|
||||
dist
|
||||
desktop-app/dist
|
||||
desktop-app/build
|
||||
19
.github/workflows/docker-hub.yml
vendored
Normal file
19
.github/workflows/docker-hub.yml
vendored
Normal file
|
|
@ -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
Dockerfile
Normal file
15
Dockerfile
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue