From db373b66a66c85f6b532eebc953f563655ec544a Mon Sep 17 00:00:00 2001 From: Divlo Date: Sun, 23 Oct 2022 12:37:36 +0200 Subject: [PATCH] fix(docker): issues with SSL --- .dockerignore | 12 +++++++++--- Dockerfile | 43 ++++++++++++++++++++++++------------------- 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/.dockerignore b/.dockerignore index 540258c5..1495a6ad 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,9 @@ -node_modules/ -bridges/python/src/.venv/* -dist/* +__pycache__/ +**/dist/* +**/build/ +**/node_modules/ +**/tmp/* +**/src/.venv/* +logs/* +*.pyc +.DS_Store diff --git a/Dockerfile b/Dockerfile index c992f413..8ab722dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:latest +FROM ubuntu:20.04 ENV IS_DOCKER true # Replace shell with bash so we can source files @@ -10,23 +10,28 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio # Install base dependencies RUN apt-get update && apt-get install --yes -q --no-install-recommends \ apt-transport-https \ - build-essential \ - ca-certificates \ - curl \ - git \ - wget \ - libssl-dev \ - zlib1g-dev \ - libbz2-dev \ - libreadline-dev \ - libsqlite3-dev \ - llvm \ - libncurses5-dev \ - xz-utils \ - tk-dev libxml2-dev \ - libxmlsec1-dev \ - libffi-dev \ - liblzma-dev + build-essential \ + ca-certificates \ + curl \ + git \ + wget \ + libssl-dev \ + openssl \ + libz-dev \ + zlib1g-dev \ + libbz2-dev \ + libreadline-dev \ + libsqlite3-dev \ + llvm \ + libncurses5-dev \ + xz-utils \ + tk-dev libxml2-dev \ + libxmlsec1-dev \ + libffi-dev \ + liblzma-dev \ + libgdbm-dev \ + libnss3-dev \ + libc6-dev # Run the container as an unprivileged user RUN groupadd docker && useradd -g docker -s /bin/bash -m docker @@ -41,7 +46,7 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | b RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use --delete-prefix $NODE_VERSION" ENV NODE_PATH $NVM_DIR/versions/node/$NODE_VERSION/lib/node_modules -ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH +ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH # Install Leon WORKDIR /home/docker/leon