Commit 47a4061b authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Smaller docker build

parent 16f17e60
Pipeline #68986 failed with stage
in 53 seconds
FROM python:3.8-slim
MAINTAINER RESIF DC <resif-dc@univ-grenoble-alpes.fr>
FROM python:3.9-slim AS build
RUN apt-get update && apt-get install -y python3-dev libpq-dev build-essential
COPY requirements.txt /
RUN pip3 install --no-cache-dir -r /requirements.txt
RUN pip3 install --no-cache-dir gunicorn
FROM python:3.9-slim
MAINTAINER RESIF DC <resif-dc@univ-grenoble-alpes.fr>
RUN apt-get update && apt-get -y install gnupg
COPY setup/gpghome /gpghome
RUN pip3 install --no-cache-dir gunicorn
COPY requirements.txt /
RUN pip3 install --no-cache-dir -r /requirements.txt
COPY --from=build /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages
COPY eidawsauth/ /app/
WORKDIR /app
CMD ["gunicorn", "-b", "0.0.0.0:8000", "eidawsauth"]
......@@ -8,7 +8,7 @@ verify_ssl = true
[packages]
click = "==7.1.1"
itsdangerous = "==1.1.0"
psycopg2-binary = "*"
psycopg2 = "*"
python-gnupg = "==0.4.5"
Flask = "==1.1.1"
Jinja2 = "==2.11.1"
......
{
"_meta": {
"hash": {
"sha256": "49ade479f3c3647a3a7de684233b91eee7764a20e2ae770612d93c479d91aaaf"
"sha256": "01467160d3ee226ac73489963718e4e58340480087fe5ca78210d2e09cae35ef"
},
"pipfile-spec": 6,
"requires": {
......@@ -110,6 +110,27 @@
"index": "pypi",
"version": "==1.1.1"
},
"psycopg2": {
"hashes": [
"sha256:00195b5f6832dbf2876b8bf77f12bdce648224c89c880719c745b90515233301",
"sha256:068115e13c70dc5982dfc00c5d70437fe37c014c808acce119b5448361c03725",
"sha256:26e7fd115a6db75267b325de0fba089b911a4a12ebd3d0b5e7acb7028bc46821",
"sha256:2c93d4d16933fea5bbacbe1aaf8fa8c1348740b2e50b3735d1b0bf8154cbf0f3",
"sha256:56007a226b8e95aa980ada7abdea6b40b75ce62a433bd27cec7a8178d57f4051",
"sha256:56fee7f818d032f802b8eed81ef0c1232b8b42390df189cab9cfa87573fe52c5",
"sha256:6a3d9efb6f36f1fe6aa8dbb5af55e067db802502c55a9defa47c5a1dad41df84",
"sha256:a49833abfdede8985ba3f3ec641f771cca215479f41523e99dace96d5b8cce2a",
"sha256:ad2fe8a37be669082e61fb001c185ffb58867fdbb3e7a6b0b0d2ffe232353a3e",
"sha256:b8cae8b2f022efa1f011cc753adb9cbadfa5a184431d09b273fb49b4167561ad",
"sha256:d160744652e81c80627a909a0e808f3c6653a40af435744de037e3172cf277f5",
"sha256:d5062ae50b222da28253059880a871dc87e099c25cb68acf613d9d227413d6f7",
"sha256:f22ea9b67aea4f4a1718300908a2fb62b3e4276cf00bd829a97ab5894af42ea3",
"sha256:f974c96fca34ae9e4f49839ba6b78addf0346777b46c4da27a7bf54f48d3057d",
"sha256:fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543"
],
"index": "pypi",
"version": "==2.8.6"
},
"psycopg2-binary": {
"hashes": [
"sha256:0deac2af1a587ae12836aa07970f5cb91964f05a7c6cdb69d8425ff4c15d4e2c",
......@@ -148,7 +169,7 @@
"sha256:ee69dad2c7155756ad114c02db06002f4cded41132cc51378e57aad79cc8e4f4",
"sha256:f5ab93a2cb2d8338b1674be43b442a7f544a0971da062a5da774ed40587f18f5"
],
"index": "pypi",
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==2.8.6"
},
"python-gnupg": {
......
......@@ -12,6 +12,7 @@ flask==1.1.1
itsdangerous==1.1.0
jinja2==2.11.1
markupsafe==1.1.1
psycopg2-binary==2.8.6
psycopg2-binary==2.8.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
psycopg2==2.8.6
python-gnupg==0.4.5
werkzeug==1.0.0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment