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 -