Adds Dockerfile and Woodpecker file for automated builds
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
aarbit 2024-07-28 16:26:34 -05:00
parent 057c10011d
commit 6af9436544
2 changed files with 32 additions and 0 deletions

15
.woodpecker.yaml Normal file
View File

@ -0,0 +1,15 @@
when:
branch: main
event:
- push
- manual
steps:
- name: build
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.halfbinary.net/${CI_REPO_OWNER}/matrix-mod
registry: git.halfbinary.net
tags: ${CI_PIPELINE_NUMBER}
username: ${CI_REPO_OWNER}
password:
from_secret: docker_password

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:18-alpine
LABEL maintainer="Alex Arbit <aarbit@gmail.com>"
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
RUN npm run build
EXPOSE 8083
CMD [ "npm", "run", "preview" ]