added Dockerfile and action

This commit is contained in:
Luis Fernando committed 2021-03-06 22:33:49 -03:00
1 parent 96f57d8555
commit 4d47610eed
3 files changed
+41

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
README.md
LICENSE
CONTRIBUITING.md
CODE_OF_CONDUCT.md
.gitignore
.vscode
.github/ISSUE_TEMPLATE
./**/.vscode
Dockerfile
+20
View File
@@ -0,0 +1,20 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: unfernandito/Superalgos/superalgos
tag_with_ref: true
+12
View File
@@ -0,0 +1,12 @@
FROM node:lts-alpine3.10
WORKDIR app
COPY . .
EXPOSE 18041
EXPOSE 34248
CMD ["node", "run", "noBrowser"]