Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions samples/arduino-wifi/app/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Default .dockerignore file for Defang
**/__pycache__
**/.direnv
**/.DS_Store
**/.envrc
**/.git
**/.github
**/.idea
**/.next
**/.vscode
**/compose.*.yaml
**/compose.*.yml
**/compose.yaml
**/compose.yml
**/docker-compose.*.yaml
**/docker-compose.*.yml
**/docker-compose.yaml
**/docker-compose.yml
**/node_modules
**/Thumbs.db
Dockerfile
*.Dockerfile
# Ignore our own binary, but only in the root to avoid ignoring subfolders
defang
defang.exe
# Ignore our project-level state
.defang
File renamed without changes.
1 change: 0 additions & 1 deletion samples/arduino-wifi/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ services:
restart: unless-stopped
build:
context: ./app
dockerfile: Dockerfile
deploy:
resources:
reservations:
Expand Down
31 changes: 0 additions & 31 deletions samples/django/app/.dockerignore

This file was deleted.

27 changes: 0 additions & 27 deletions samples/django/app/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion samples/django/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ services:
restart: unless-stopped
build:
context: ./app
dockerfile: Dockerfile
ports:
- mode: ingress
target: 8000
# published: 8000 # uncomment for local dev
environment:
- DEBUG=False # set to "True" for local dev
command: ["python manage.py migrate && python manage.py createsuperauto && gunicorn defang_sample.wsgi:application --bind 0.0.0.0:8000"]
#deploy:
# resources:
# reservations:
Expand Down
4 changes: 4 additions & 0 deletions samples/fastapi/fastapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ async def delete_todo(todo_id: int):
global todos
todos = [todo for todo in todos if todo.id != todo_id]
return RedirectResponse(url="/", status_code=303)

if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
1 change: 0 additions & 1 deletion samples/flask/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ services:
restart: unless-stopped
build:
context: ./flask
dockerfile: Dockerfile
deploy:
resources:
reservations:
Expand Down
26 changes: 0 additions & 26 deletions samples/flask/flask/Dockerfile

This file was deleted.

27 changes: 27 additions & 0 deletions samples/golang-http-form/app/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Default .dockerignore file for Defang
**/__pycache__
**/.direnv
**/.DS_Store
**/.envrc
**/.git
**/.github
**/.idea
**/.next
**/.vscode
**/compose.*.yaml
**/compose.*.yml
**/compose.yaml
**/compose.yml
**/docker-compose.*.yaml
**/docker-compose.*.yml
**/docker-compose.yaml
**/docker-compose.yml
**/node_modules
**/Thumbs.db
Dockerfile
*.Dockerfile
# Ignore our own binary, but only in the root to avoid ignoring subfolders
defang
defang.exe
# Ignore our project-level state
.defang
31 changes: 0 additions & 31 deletions samples/golang-http-form/app/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion samples/golang-http-form/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ services:
restart: unless-stopped
build:
context: ./app
dockerfile: Dockerfile
ports:
- mode: ingress
target: 8080
Expand Down
Loading