This commit is contained in:
2026-08-20 21:42:57 +03:00
parent a320821d69
commit e45855e790
36 changed files with 399 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"app": "fastapi-test",
"project": "fastapi-test",
"_app_id": "2a0c0168-dbf0-4f95-a5e9-a7e330bc56d9",
"_project_id": "e3d04bd4-e8cd-4c19-9a32-5393be67587f",
"port": 8000,
"publicAccess": {
"enabled": true,
"domain": "fastapi-test-f38b02d3c679.hosted.ghaymah.systems"
},
"resourceTier": "t1",
"_detected": "python"
}
+23
View File
@@ -0,0 +1,23 @@
# 🐍 Auto-generated Dockerfile for Python 3.12
# Ghaymah detected: FastAPI
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt* setup.py* pyproject.toml* ./
RUN pip install --no-cache-dir -r requirements.txt 2>/dev/null || true
# Copy application code
COPY . .
# Expose port
EXPOSE 8080
# Start the application
CMD ["sh", "-c", "python main.py"]
+7
View File
@@ -0,0 +1,7 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def hello():
return {"message": "Hello from FastAPI!"}
@@ -0,0 +1,2 @@
fastapi
uvicorn
+13
View File
@@ -0,0 +1,13 @@
{
"app": "flask-test",
"project": "flask-test",
"_app_id": "9c0e8d09-476f-4734-8667-c1ae9f071f8b",
"_project_id": "11cab4ad-fd7a-45e6-b6a4-ba7ec05831e3",
"port": 5000,
"publicAccess": {
"enabled": true,
"domain": "flask-test-27a4a0302d14.hosted.ghaymah.systems"
},
"resourceTier": "t1",
"_detected": "dockerfile"
}
+23
View File
@@ -0,0 +1,23 @@
# 🐍 Auto-generated Dockerfile for Python 3.12
# Ghaymah detected: Flask
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt* setup.py* pyproject.toml* ./
RUN pip install --no-cache-dir -r requirements.txt 2>/dev/null || true
# Copy application code
COPY . .
# Expose port
EXPOSE 8080
# Start the application
CMD ["sh", "-c", "python app.py"]
+10
View File
@@ -0,0 +1,10 @@
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello from Flask!"
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
@@ -0,0 +1 @@
Flask
+13
View File
@@ -0,0 +1,13 @@
{
"app": "go-test",
"project": "go-test",
"_app_id": "63e76372-f177-4401-8868-996406084240",
"_project_id": "9e724fe9-47d7-4dc3-b669-54294561ca36",
"port": 8000,
"publicAccess": {
"enabled": true,
"domain": "go-test-fbcdc461325b.hosted.ghaymah.systems"
},
"resourceTier": "t1",
"_detected": "go"
}
+15
View File
@@ -0,0 +1,15 @@
# 🔷 Auto-generated Dockerfile for Go
# Ghaymah detected:
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod go.sum* ./
RUN go mod download 2>/dev/null || true
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/bin/app .
FROM alpine:3.19
RUN apk --no-cache add ca-certificates
COPY --from=builder /app/bin/app /app
EXPOSE 8080
CMD ["/app"]
Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

+3
View File
@@ -0,0 +1,3 @@
module go-test
go 1.22
+7
View File
@@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello from Go!")
}
+13
View File
@@ -0,0 +1,13 @@
{
"app": "go-web-test",
"project": "go-web-test",
"_app_id": "7f5a4300-a098-4433-8b8c-200f29da51f0",
"_project_id": "7a31cf5a-82f1-4762-8c1f-905c3c64ebc9",
"port": 8000,
"publicAccess": {
"enabled": true,
"domain": "go-web-test-246327147195.hosted.ghaymah.systems"
},
"resourceTier": "t1",
"_detected": "dockerfile"
}
+15
View File
@@ -0,0 +1,15 @@
# 🔷 Auto-generated Dockerfile for Go
# Ghaymah detected:
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod go.sum* ./
RUN go mod download 2>/dev/null || true
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/bin/app .
FROM alpine:3.19
RUN apk --no-cache add ca-certificates
COPY --from=builder /app/bin/app /app
EXPOSE 8080
CMD ["/app"]
+3
View File
@@ -0,0 +1,3 @@
module go-web-test
go 1.22
+21
View File
@@ -0,0 +1,21 @@
package main
import (
"fmt"
"net/http"
"os"
)
func main() {
port := os.Getenv("PORT")
if port == "" {
port = "8000"
}
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello from Go!")
})
fmt.Println("Server listening on :" + port)
http.ListenAndServe(":"+port, nil)
}
+4
View File
@@ -0,0 +1,4 @@
node_modules
.git
.env
*.md
+13
View File
@@ -0,0 +1,13 @@
{
"app": "node-test",
"project": "node-test",
"_app_id": "abcbe7ef-8d64-47ce-81a9-177c14581b58",
"_project_id": "ad16ddf1-d289-46f5-bb72-f94091b8b583",
"port": 8080,
"publicAccess": {
"enabled": true,
"domain": "node-test-3f482b7ce6b2.hosted.ghaymah.systems"
},
"resourceTier": "t1",
"_detected": "dockerfile"
}
+8
View File
@@ -0,0 +1,8 @@
# 🟢 Auto-generated Dockerfile for Node.js 22
FROM node:22-alpine
WORKDIR /app
COPY package*.json pnpm-lock.yaml* yarn.lock* ./
RUN npm ci
COPY . .
EXPOSE 8080
CMD ["sh", "-c", "npm run start"]
+12
View File
@@ -0,0 +1,12 @@
const http = require("http");
const PORT = process.env.PORT || 8080;
const server = http.createServer((req, res) => {
res.writeHead(200, { "Content-Type": "text/plain" });
res.end("Hello from Node.js!");
});
server.listen(PORT, "0.0.0.0", () => {
console.log(`Server listening on port ${PORT}`);
});
+12
View File
@@ -0,0 +1,12 @@
{
"name": "node-test",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "node-test",
"version": "1.0.0"
}
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "node-test",
"version": "1.0.0",
"scripts": {
"start": "node index.js"
}
}