Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📌 Add external dependencies and Dependabot to get automatic upgrade PRs #84

Merged
merged 3 commits into from
Sep 17, 2021
Merged
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
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# Development/testing dependencies
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
# Docker image dependencies
- package-ecosystem: "pip"
directory: "/docker-images"
schedule:
interval: "daily"
3 changes: 2 additions & 1 deletion docker-images/python3.6-alpine3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM python:3.6-alpine3.8

LABEL maintainer="Sebastian Ramirez <[email protected]>"

COPY requirements.txt /tmp/requirements.txt
RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \
&& pip install --no-cache-dir "uvicorn[standard]" gunicorn \
&& pip install --no-cache-dir -r /tmp/requirements.txt \
&& apk del .build-deps gcc libc-dev make

COPY ./start.sh /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.6.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM python:3.6

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.7-alpine3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM python:3.7-alpine3.8

LABEL maintainer="Sebastian Ramirez <[email protected]>"

COPY requirements.txt /tmp/requirements.txt
RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \
&& pip install --no-cache-dir "uvicorn[standard]" gunicorn \
&& pip install --no-cache-dir -r /tmp/requirements.txt \
&& apk del .build-deps gcc libc-dev make

COPY ./start.sh /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM python:3.7

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.8-alpine3.10.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM python:3.8-alpine3.10

LABEL maintainer="Sebastian Ramirez <[email protected]>"

COPY requirements.txt /tmp/requirements.txt
RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \
&& pip install --no-cache-dir "uvicorn[standard]" gunicorn \
&& pip install --no-cache-dir -r /tmp/requirements.txt \
&& apk del .build-deps gcc libc-dev make

COPY ./start.sh /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.8-slim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM python:3.8-slim

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM python:3.8

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.9-alpine3.14.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM python:3.9-alpine3.14

LABEL maintainer="Sebastian Ramirez <[email protected]>"

COPY requirements.txt /tmp/requirements.txt
RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \
&& pip install --no-cache-dir "uvicorn[standard]" gunicorn \
&& pip install --no-cache-dir -r /tmp/requirements.txt \
&& apk del .build-deps gcc libc-dev make

COPY ./start.sh /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.9-slim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM python:3.9-slim

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
3 changes: 2 additions & 1 deletion docker-images/python3.9.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM python:3.9

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
2 changes: 2 additions & 0 deletions docker-images/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
uvicorn[standard]==0.15.0
gunicorn==20.1.0