Skip to content

Commit

Permalink
Merge pull request #57 from openfido/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Thistleman committed May 3, 2024
2 parents 515a78a + 86a2db5 commit 9d1bc18
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.0.0-experimental
FROM python:3.8-slim as base
FROM python:3.10-slim as base

SHELL ["/bin/bash", "-c"]

Expand All @@ -10,8 +10,11 @@ EXPOSE 5000

FROM base as python-deps

RUN apt-get update -qq && apt-get install -y ssh git openssl
RUN apt-get upgrade -y openssl
RUN apt-get update -qq && apt-get install -y ssh git openssl bash
# Install required system dependencies including Nginx
RUN apt-get install -y libpq-dev python3-psycopg2 mariadb-client postgresql-client
RUN apt-get install -y python3-dev default-libmysqlclient-dev build-essential
RUN apt-get upgrade -y openssl bash dash

# require a private key to access private github repositories
ARG SSH_PRIVATE_KEY
Expand Down
9 changes: 7 additions & 2 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# syntax=docker/dockerfile:1.0.0-experimental
FROM python:3.8-slim as base
FROM python:3.10-slim as base

SHELL ["/bin/bash", "-c"]

RUN apt-get update -qq && apt-get install -y ssh git
RUN apt-get update -qq && apt-get install -y ssh git bash
RUN apt-get install -y libpq-dev python3-psycopg2 mariadb-client postgresql-client
RUN apt-get install -y python3-dev default-libmysqlclient-dev build-essential
RUN apt-get upgrade -y bash dash

# require a private key to access private github repositories
ARG SSH_PRIVATE_KEY
Expand Down Expand Up @@ -46,6 +49,8 @@ RUN chmod a+r /etc/apt/keyrings/docker.asc
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update



RUN apt install -y docker-ce git
RUN apt-get clean

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sqlalchemy==1.3.20
starkbank-ecdsa==1.1.0
tld==0.12.2
toml==0.10.1
typed-ast==1.4.1
typed-ast==1.5.5
typing-extensions==3.7.4.3
urllib3==1.25.11
werkzeug==1.0.1
Expand All @@ -75,6 +75,6 @@ pylint==2.6.0
pylint-flask-sqlalchemy==0.2.0
pyrsistent==0.17.3
pyyaml==5.3.1
wrapt==1.12.1
wrapt==1.16.0
vine==5.0.0
certifi>=2023.7.22 # not directly required, pinned by Snyk to avoid a vulnerability

0 comments on commit 9d1bc18

Please sign in to comment.