diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 00000000..02c20f70 --- /dev/null +++ b/.github/workflows/main.yaml @@ -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 }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..ed556aa7 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file