Dockerfile: just add the entire repo
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 2m42s
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:
@@ -13,15 +13,11 @@ jobs:
|
|||||||
# change mirror to kku.ac.th for faster package downloading
|
# 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 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
|
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
|
- name: Build docker image
|
||||||
run: |
|
run: |
|
||||||
|
mv Dockerfile ../
|
||||||
|
mv entrypoint ../
|
||||||
|
cd ../
|
||||||
docker build . -t accounting-api:latest
|
docker build . -t accounting-api:latest
|
||||||
|
|
||||||
|
|
||||||
18
Dockerfile
18
Dockerfile
@@ -5,22 +5,16 @@ RUN chmod +x ./entrypoint
|
|||||||
|
|
||||||
RUN apk update && apk add npm
|
RUN apk update && apk add npm
|
||||||
|
|
||||||
RUN mkdir /server
|
ADD micro-service-api /server
|
||||||
|
|
||||||
ADD node_modules /server/node_modules
|
RUN mv /server/start-accountingwep.sh /
|
||||||
ADD package-lock.json /server/package-lock.json
|
RUN mv /server/start-login.sh /
|
||||||
ADD package.json /server/package.json
|
RUN mv /server/start-ttc.sh /
|
||||||
|
|
||||||
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 chmod +x /start-accountingwep.sh
|
RUN chmod +x /start-accountingwep.sh
|
||||||
RUN chmod +x /start-login.sh
|
RUN chmod +x /start-login.sh
|
||||||
RUN chmod +x /start-ttc.sh
|
RUN chmod +x /start-ttc.sh
|
||||||
|
|
||||||
|
RUN cd /server && npm install
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint"]
|
ENTRYPOINT ["/entrypoint"]
|
||||||
|
|||||||
Reference in New Issue
Block a user