File tree 8 files changed +76
-44
lines changed
{{cookiecutter.project_slug}}
8 files changed +76
-44
lines changed Original file line number Diff line number Diff line change 1
1
rm -rf \{\{ cookiecutter.project_slug\}\} /.git
2
- rm -rf \{\{ cookiecutter.project_slug\}\} /backend/app/Pipfile .lock
2
+ rm -rf \{\{ cookiecutter.project_slug\}\} /backend/app/poetry .lock
3
3
rm -rf \{\{ cookiecutter.project_slug\}\} /frontend/node_modules
4
4
rm -rf \{\{ cookiecutter.project_slug\}\} /frontend/dist
5
5
git checkout \{\{ cookiecutter.project_slug\}\} /README.md
Original file line number Diff line number Diff line change 1
1
__pycache__
2
+ app.egg-info
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [tool .poetry ]
2
+ name = " app"
3
+ version = " 0.1.0"
4
+ description = " "
5
+ authors = [" Admin <admin@example.com>" ]
6
+
7
+ [tool .poetry .dependencies ]
8
+ python = " ^3.7"
9
+ uvicorn = " ^0.11.3"
10
+ fastapi = " ^0.54.1"
11
+ pyjwt = " ^1.7.1"
12
+ python-multipart = " ^0.0.5"
13
+ email-validator = " ^1.0.5"
14
+ requests = " ^2.23.0"
15
+ celery = " ^4.4.2"
16
+ passlib = {extras = [" bcrypt" ], version = " ^1.7.2" }
17
+ tenacity = " ^6.1.0"
18
+ pydantic = " ^1.4"
19
+ emails = " ^0.5.15"
20
+ raven = " ^6.10.0"
21
+ gunicorn = " ^20.0.4"
22
+ jinja2 = " ^2.11.2"
23
+ psycopg2-binary = " ^2.8.5"
24
+ alembic = " ^1.4.2"
25
+ sqlalchemy = " ^1.3.16"
26
+ pytest = " ^5.4.1"
27
+
28
+ [tool .poetry .dev-dependencies ]
29
+ mypy = " ^0.770"
30
+ black = " ^19.10b0"
31
+ isort = " ^4.3.21"
32
+ autoflake = " ^1.3.1"
33
+ flake8 = " ^3.7.9"
34
+ pytest = " ^5.4.1"
35
+ jupyter = " ^1.0.0"
36
+ vulture = " ^1.4"
37
+
38
+ [build-system ]
39
+ requires = [" poetry>=0.12" ]
40
+ build-backend = " poetry.masonry.api"
Original file line number Diff line number Diff line change 1
1
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
2
2
3
- RUN pip install celery~=4.3 passlib[bcrypt] tenacity requests emails "fastapi>=0.47.0" "uvicorn>=0.11.1" gunicorn pyjwt python-multipart email-validator jinja2 psycopg2-binary alembic SQLAlchemy
3
+ WORKDIR /app/
4
+
5
+ # Install Poetry
6
+ RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7
+ cd /usr/local/bin && \
8
+ ln -s /opt/poetry/bin/poetry && \
9
+ poetry config virtualenvs.create false
10
+
11
+ # Copy poetry.lock* in case it doesn't exist in the repo
12
+ COPY ./app/pyproject.toml ./app/poetry.lock* /app/
13
+ RUN poetry install --no-dev --no-root
4
14
5
15
# For development, Jupyter remote kernel, Hydrogen
6
16
# Using inside the container:
@@ -10,7 +20,6 @@ RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyterlab ; fi"
10
20
EXPOSE 8888
11
21
12
22
COPY ./app /app
13
- WORKDIR /app/
14
23
15
24
ENV PYTHONPATH=/app
16
25
Original file line number Diff line number Diff line change 1
1
FROM python:3.7
2
2
3
- RUN pip install raven celery~=4.3 passlib[bcrypt] tenacity requests "fastapi>=0.47.0" emails pyjwt email-validator jinja2 psycopg2-binary alembic SQLAlchemy
3
+ WORKDIR /app/
4
+
5
+ # Install Poetry
6
+ RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7
+ cd /usr/local/bin && \
8
+ ln -s /opt/poetry/bin/poetry && \
9
+ poetry config virtualenvs.create false
10
+
11
+ # Copy poetry.lock* in case it doesn't exist in the repo
12
+ COPY ./app/pyproject.toml ./app/poetry.lock* /app/
13
+ RUN poetry install --no-dev --no-root
4
14
5
15
# For development, Jupyter remote kernel, Hydrogen
6
16
# Using inside the container:
Original file line number Diff line number Diff line change 1
1
FROM python:3.7
2
2
3
- RUN pip install requests pytest tenacity passlib[bcrypt] "fastapi>=0.47.0" email-validator psycopg2-binary SQLAlchemy
3
+ WORKDIR /app/
4
+
5
+ # Install Poetry
6
+ RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7
+ cd /usr/local/bin && \
8
+ ln -s /opt/poetry/bin/poetry && \
9
+ poetry config virtualenvs.create false
10
+
11
+ # Copy poetry.lock* in case it doesn't exist in the repo
12
+ COPY ./app/pyproject.toml ./app/poetry.lock* /app/
13
+ RUN poetry install --no-dev --no-root
4
14
5
15
# For development, Jupyter remote kernel, Hydrogen
6
16
# Using inside the container:
Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ services:
17
17
- env-postgres.env
18
18
- env-backend.env
19
19
environment :
20
+ - SERVER_NAME=${DOMAIN}
20
21
- SERVER_HOST=https://${DOMAIN}
You can’t perform that action at this time.
0 commit comments