# # # ---------------------------------------------------------------
# # # Dockerfile to build: LSWF project and dependences
# # # Dependencies: Ubuntu22.04, OpenFOAM-9
# # # 
# # # @copyright WIKKI BRASIL C E LTDA. All rights reserved
# # # @author Thalis Oliveira
# # #
# # # ---------------------------------------------------------------
# # # Build image from inside this folder:
# # # docker build -t wikkibrasil/ubuntu22.04x64-of9-lswf:v01 .

FROM ubuntu:22.04

LABEL maintainer="Rafael Baena <rafael.baena@wikki.com.br>"

WORKDIR /build

COPY . .

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y curl gpg python3-pip vim && \
    curl -s http://archive.wiisegroup.com/ubuntu/add-repo.sh | sh && \
    apt update && apt install -y openfoam9 wget && apt clean cache

CMD ["./build.sh"]
