Skip to content
Open
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
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.10.7-bullseye

WORKDIR /usr/src/app

COPY .env ./
COPY requirements.txt ./

RUN python -m pip install -r requirements.txt

COPY . .

RUN python manage.py migrate
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ GUI in your browser to draw your cloud infrastructure and generate your terrafor

### Test
- Rum `python manage.py test`

### Run with Docker
- Run `docker build -t tfmaker-api .`
- Run `docker run -p 8000:8000 -it --rm --name tfmaker-api tfmaker-api`
- Run `docker exec -it tfmaker-api sh`
- Run in container `python manage.py createsuperuser`
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ mysqlclient~=2.1.1
Pillow~=9.2.0
requests~=2.28.1
django-jsonform~=2.11.1
django-cors-headers~=3.13.0
django-cors-headers~=3.13.0
django-flat-json-widget~=0.2.0
1 change: 1 addition & 0 deletions tfmaker/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

'corsheaders',
'django_jsonform',
'flat_json_widget',

'account',
'api',
Expand Down