Compare commits

...

5 commits

Author SHA1 Message Date
652bca51a2 run ci only against main branch
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-02-28 19:52:52 +07:00
0d02d30db8 copy files recursively
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-02-28 19:47:13 +07:00
96cacd67f4 add ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-02-28 19:41:48 +07:00
807a1f8a38 remove unused dependencies 2025-02-25 19:37:02 +07:00
9da39dd132 expose port 8000 instead of 3000 2025-02-25 19:10:45 +07:00
2 changed files with 13 additions and 10 deletions

12
.woodpecker.yml Normal file
View file

@ -0,0 +1,12 @@
when:
- branch: main
steps:
- name: techtransthai-simple-deploy
image: node
commands:
- npm i
- npm run build
- cp -r public/* /mnt/caddy-sites/tsib.techtransthai.org/
volumes:
- /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites

View file

@ -1,14 +1,5 @@
FROM node:latest
# Install Python, make, and build dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
make \
g++ \
libvips-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY package*.json ./
@ -17,6 +8,6 @@ RUN npm install
COPY . .
EXPOSE 3000
EXPOSE 8000
CMD ["npm", "start"]