Dockerfile: just add the entire repo
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 2m42s

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-21 17:45:37 +07:00
parent 4a548e38b5
commit 40383733cd
2 changed files with 9 additions and 19 deletions

View File

@@ -13,15 +13,11 @@ jobs:
# change mirror to kku.ac.th for faster package downloading
sudo sed -i 's@http://archive.ubuntu.com@http://mirror.kku.ac.th@g' /etc/apt/sources.list.d/ubuntu.sources
sudo apt update && sudo apt install nodejs npm curl -y
- name: Install project dependencies
run: |
npm install
- name: Testing APIs
run: |
chmod +x test.sh
./test.sh
- name: Build docker image
run: |
mv Dockerfile ../
mv entrypoint ../
cd ../
docker build . -t accounting-api:latest

View File

@@ -5,22 +5,16 @@ RUN chmod +x ./entrypoint
RUN apk update && apk add npm
RUN mkdir /server
ADD micro-service-api /server
ADD node_modules /server/node_modules
ADD package-lock.json /server/package-lock.json
ADD package.json /server/package.json
ADD exthernal-login-api /server/exthernal-login-api
ADD exthernal-ttc-api /server/exthernal-ttc-api
ADD exthernal-accountingwep-api /server/exthernal-accountingwep-api
ADD start-accountingwep.sh /start-accountingwep.sh
ADD start-ttc.sh /start-ttc.sh
ADD start-login.sh /start-login.sh
RUN mv /server/start-accountingwep.sh /
RUN mv /server/start-login.sh /
RUN mv /server/start-ttc.sh /
RUN chmod +x /start-accountingwep.sh
RUN chmod +x /start-login.sh
RUN chmod +x /start-ttc.sh
RUN cd /server && npm install
ENTRYPOINT ["/entrypoint"]