added Dockerfile & Github actions flow

pull/33/head
Affan Haq 2020-08-20 13:23:45 -04:00
parent c3da37c0b0
commit a78ca18661
2 changed files with 26 additions and 0 deletions

15
.github/workflows/main.yaml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Publish Docker
on:
push:
branches: [ master ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: haaaqs/umami:latest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:12.18-alpine
COPY . /app
WORKDIR /app
RUN npm install \
&& npm run build-mysql-client \
&& npm run build
EXPOSE 3000
CMD ["npm", "start"]