From 33dd37e8ef91deedfc8e0b44a1a1b832fd7dd9e3 Mon Sep 17 00:00:00 2001 From: Adam Cheng <52572642+adamchengtkc@users.noreply.github.com> Date: Mon, 20 Nov 2023 13:49:42 +0000 Subject: [PATCH] TST: docker CI --- .github/workflows/build_docker.yml | 2 -- Dockerfile | 32 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index be30334..fb23314 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -35,8 +35,6 @@ jobs: name: Build uses: docker/build-push-action@v2 with: - file: Dockerfile - context: .devcontainer push: true platforms: linux/amd64 tags: ghcr.io/equinor/warmth:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0bd680c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM dolfinx/dolfinx:v0.6.0 + +LABEL org.opencontainers.image.source https://github.com/equinor/warmth +ARG DEBIAN_FRONTEND=noninteractive + +RUN DEBIAN_FRONTEND=noninteractive \ + && apt-get update \ + && apt-get install -y build-essential --no-install-recommends make \ + ca-certificates \ + git \ + libssl-dev \ + zlib1g-dev \ + libbz2-dev \ + libreadline-dev \ + libsqlite3-dev \ + wget \ + curl \ + llvm \ + libncurses5-dev \ + xz-utils \ + tk-dev \ + libxml2-dev \ + libxmlsec1-dev \ + libffi-dev \ + liblzma-dev + +RUN useradd -rm -d /home/vscode -s /bin/bash -g root -G sudo -u 1000 vscode -p "" +USER 1000 +WORKDIR /home/vscode +ENV HOME=/home/vscode +ENV PATH="/root/.local/bin:$HOME/.local/bin::$PATH" +RUN curl -sSL https://install.python-poetry.org | python3 -