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,13 @@
FROM node:current-alpine
RUN apk add sqlite nano make mc rsync
WORKDIR /app
COPY build/package*.json ./
RUN npm install
COPY build/ ./
EXPOSE 8080
CMD ["./start"]

14
backend/image/x86/build.sh Executable file
View File

@@ -0,0 +1,14 @@
cd /uda/gittea/frontend
./build.sh
cd /uda/gittea/backend/image/x86
mkdir build
cp -r ../../backend/* ./build/
docker build -t establo_x86 .
cd build
rm -rf *
cd ..
rmdir build

View File

@@ -0,0 +1,28 @@
{
"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",
"sqlite3": "^5.0.2",
"svg-to-pdfkit": "^0.1.8"
},
"devDependencies": {
"jest": "^27.4.3",
"nodemon": "^2.0.15",
"supertest": "^6.1.6"
}
}

7
backend/image/x86/push Executable file
View File

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