This commit is contained in:
2024-08-13 16:46:44 -04:00
commit 8cb37c6011
418 changed files with 69567 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
FROM node:current-alpine
RUN apk add --virtual .build make g++ python3
RUN apk add sqlite nano make mc rsync
WORKDIR /app
COPY build/package*.json ./
RUN npm install
RUN npm install sqlite3 --unsafe-perm
COPY build/ ./
RUN ls -la
RUN apk del .build
EXPOSE 8080
CMD ["./start"]

15
backend/image/arm/build.sh Executable file
View File

@@ -0,0 +1,15 @@
mkdir build
cp -r ../../backend/* ./build/
#DELETE SQLITE FOR ARM
grep -v "qlite3" ./build/package.json > tmpfile
mv tmpfile ./build/package.json
cat ./build/package.json
docker build -t establo_arm .
cd build
rm -rf *
cd ..
rmdir build

View File

@@ -0,0 +1,27 @@
{
"name": "backend",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"dev": "nodemon server.js",
"test": "jest --runInBand"
},
"author": "Team Faktotum",
"license": "ISC",
"dependencies": {
"connect-history-api-fallback": "^1.6.0",
"ejs": "^3.1.6",
"express": "^4.17.1",
"express-ejs-layouts": "^2.5.1",
"fs": "^0.0.1-security",
"pdfkit": "^0.13.0",
"sequelize": "^6.12.0-beta.3",
"svg-to-pdfkit": "^0.1.8"
},
"devDependencies": {
"jest": "^27.4.3",
"nodemon": "^2.0.15",
"supertest": "^6.1.6"
}
}

5
backend/image/arm/push Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
./build.sh
cat ../my.txt | docker login https://establo.estancia-agape.com:5000 --username upload --password-stdin
docker tag establo_arm establo.estancia-agape.com:5000/establo_arm
docker push establo.estancia-agape.com:5000/establo_arm