This repository was archived by the owner on Nov 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed
{{cookiecutter.project_slug}}/backend Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 1
1
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.6
2
2
3
3
# Dependencies for Couchbase
4
- RUN wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | apt-key add -
5
- RUN echo "deb http://packages.couchbase.com/ubuntu stretch stretch/main" > /etc/apt/sources.list.d/couchbase.list
6
- RUN apt-get update && apt-get install -y libcouchbase-dev libcouchbase2-bin build-essential
4
+ RUN wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | apt-key add - && \
5
+ OS_CODENAME=`cat /etc/os-release | grep VERSION_CODENAME | cut -f2 -d=` && \
6
+ echo "deb http://packages.couchbase.com/ubuntu ${OS_CODENAME} ${OS_CODENAME}/main" > /etc/apt/sources.list.d/couchbase.list && \
7
+ apt-get update && apt-get install -y libcouchbase-dev libcouchbase2-bin build-essential
7
8
8
- RUN pip install celery~=4.3 passlib[bcrypt] tenacity requests couchbase emails "fastapi>=0.16.0" uvicorn gunicorn pyjwt python-multipart email_validator jinja2
9
+ RUN pip install \
10
+ celery~=4.3 \
11
+ passlib[bcrypt] \
12
+ tenacity \
13
+ requests \
14
+ couchbase \
15
+ emails \
16
+ "fastapi>=0.16.0" \
17
+ uvicorn \
18
+ gunicorn \
19
+ pyjwt \
20
+ python-multipart \
21
+ email_validator \
22
+ jinja2
9
23
10
24
# For development, Jupyter remote kernel, Hydrogen
11
25
# Using inside the container:
Original file line number Diff line number Diff line change 1
1
FROM python:3.6
2
2
3
- RUN wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | apt-key add -
4
- RUN echo "deb http://packages.couchbase.com/ubuntu stretch stretch/main" > /etc/apt/sources.list.d/couchbase.list
5
- RUN apt-get update && apt-get install -y libcouchbase-dev build-essential
3
+ RUN wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | apt-key add - && \
4
+ OS_CODENAME=`cat /etc/os-release | grep VERSION_CODENAME | cut -f2 -d=` && \
5
+ echo "deb http://packages.couchbase.com/ubuntu ${OS_CODENAME} ${OS_CODENAME}/main" > /etc/apt/sources.list.d/couchbase.list && \
6
+ apt-get update && apt-get install -y libcouchbase-dev build-essential
6
7
7
8
RUN pip install requests pytest tenacity passlib[bcrypt] couchbase "fastapi>=0.16.0"
8
9
You can’t perform that action at this time.
0 commit comments