Initial commit

This commit is contained in:
2026-07-06 06:53:19 +00:00
commit ae1f0477a2
13 changed files with 80 additions and 0 deletions
View File
+32
View File
@@ -0,0 +1,32 @@
kind: pipeline
type: docker
name: default
steps:
- name: install
image: python:3.12
commands:
- pip install -r requirements.txt
- name: lint
image: python:3.12
commands:
- pip install flake8
-flake8 .
- name: test
image:python:3.12
commands:
- pip install pytest
- pytest
trigger:
branch:
-main
event:
- push
- pull_request
+13
View File
@@ -0,0 +1,13 @@
FROM node:20
WORKDIR /myapp
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
+1
View File
@@ -0,0 +1 @@
console.log("Hello from Docker!");
View File
+6
View File
@@ -0,0 +1,6 @@
services:
gitea:
image: gitea/gitea:latest
drone:
image: drone/drone:latest
View File
View File
+9
View File
@@ -0,0 +1,9 @@
git init
git add .
git commit -m "Initial commit"
git remote add origin http://gitea/rahinim2005/myapp.git
git push -u origin main
+9
View File
@@ -0,0 +1,9 @@
FROM python:latest
WORKDIR /myapp
COPY requirements.txt .
RUN python requirements.txt
CMD ["python", "app.py"]
+10
View File
@@ -0,0 +1,10 @@
{
"name": "myapp",
"version": "1.0.0",
"description": "Docker demo",
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"dependencies": {}
}
View File
View File