diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8447188 --- /dev/null +++ b/.github/dependabot.yml @@ -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" diff --git a/docker-images/python3.6-alpine3.8.dockerfile b/docker-images/python3.6-alpine3.8.dockerfile index 4ab0e6c..ec49c98 100644 --- a/docker-images/python3.6-alpine3.8.dockerfile +++ b/docker-images/python3.6-alpine3.8.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.6-alpine3.8 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.6.dockerfile b/docker-images/python3.6.dockerfile index db40a36..6f2c076 100644 --- a/docker-images/python3.6.dockerfile +++ b/docker-images/python3.6.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.6 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.7-alpine3.8.dockerfile b/docker-images/python3.7-alpine3.8.dockerfile index ed2bc2b..9754743 100644 --- a/docker-images/python3.7-alpine3.8.dockerfile +++ b/docker-images/python3.7-alpine3.8.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.7-alpine3.8 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.7.dockerfile b/docker-images/python3.7.dockerfile index 394267d..e36083d 100644 --- a/docker-images/python3.7.dockerfile +++ b/docker-images/python3.7.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.7 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8-alpine3.10.dockerfile b/docker-images/python3.8-alpine3.10.dockerfile index 312d9dc..5d73649 100644 --- a/docker-images/python3.8-alpine3.10.dockerfile +++ b/docker-images/python3.8-alpine3.10.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.8-alpine3.10 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8-slim.dockerfile b/docker-images/python3.8-slim.dockerfile index 88f9cc7..4f3a4c1 100644 --- a/docker-images/python3.8-slim.dockerfile +++ b/docker-images/python3.8-slim.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.8-slim LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8.dockerfile b/docker-images/python3.8.dockerfile index 978c293..b9c908a 100644 --- a/docker-images/python3.8.dockerfile +++ b/docker-images/python3.8.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.8 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9-alpine3.14.dockerfile b/docker-images/python3.9-alpine3.14.dockerfile index 0e23d05..12ae150 100644 --- a/docker-images/python3.9-alpine3.14.dockerfile +++ b/docker-images/python3.9-alpine3.14.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.9-alpine3.14 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9-slim.dockerfile b/docker-images/python3.9-slim.dockerfile index 15a5b45..890e4ae 100644 --- a/docker-images/python3.9-slim.dockerfile +++ b/docker-images/python3.9-slim.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.9-slim LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9.dockerfile b/docker-images/python3.9.dockerfile index e426c0a..3ed4e5e 100644 --- a/docker-images/python3.9.dockerfile +++ b/docker-images/python3.9.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.9 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/requirements.txt b/docker-images/requirements.txt new file mode 100644 index 0000000..3fb453b --- /dev/null +++ b/docker-images/requirements.txt @@ -0,0 +1,3 @@ +uvicorn[standard]==0.15.0 +gunicorn==20.1.0 +fastapi==0.68.1