Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 00d8780

Browse files
Gjacquenottiangolo
authored andcommitted
⬆️ Update Dockerfiles to work with new base image python:3.6 (#20)
1 parent 2cdf5e0 commit 00d8780

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

{{cookiecutter.project_slug}}/backend/backend.dockerfile

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.6
22

33
# 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
78

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
923

1024
# For development, Jupyter remote kernel, Hydrogen
1125
# Using inside the container:

{{cookiecutter.project_slug}}/backend/tests.dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM python:3.6
22

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
67

78
RUN pip install requests pytest tenacity passlib[bcrypt] couchbase "fastapi>=0.16.0"
89

0 commit comments

Comments
 (0)