mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 02:55:38 +01:00
added Dockerfile & Github actions flow
This commit is contained in:
parent
c3da37c0b0
commit
a78ca18661
2 changed files with 26 additions and 0 deletions
15
.github/workflows/main.yaml
vendored
Normal file
15
.github/workflows/main.yaml
vendored
Normal 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
11
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue