Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #3

Open
TheFibonacciEffect opened this issue Nov 21, 2024 · 0 comments
Open

Dockerfile #3

TheFibonacciEffect opened this issue Nov 21, 2024 · 0 comments

Comments

@TheFibonacciEffect
Copy link

TheFibonacciEffect commented Nov 21, 2024

Hi,
in case anyone is struggling to get this running, here is a working docker file:

# Use Ubuntu 16.04 LTS
FROM ubuntu:16.04

# Install required tools, libraries, and dependencies
RUN apt-get update && \
    apt-get install -y wget libgl1 libx11-6 libxm4 libxt6 build-essential gnupg gcc gfortran && \
    apt-get install -y libx11-dev pgplot5 && \
    apt-get clean

# Install DISLIN
RUN wget https://www.dislin.de/downloads/linux/i586_64/dislin-11.5.linux.i586_64.deb && \
    dpkg -i dislin-11.5.linux.i586_64.deb && \
    rm dislin-11.5.linux.i586_64.deb

# Copy the numerical-methods-fortran directory into the image
COPY numerical-methods-fortran /app/numerical-methods-fortran

# Set the working directory to the numerical-methods-fortran folder
WORKDIR /app/numerical-methods-fortran

# Run the make command to build the project
RUN make

# Specify the volume mount point inside the container (optional)
VOLUME ["/app"]

# Default command (optional)
CMD ["bash"]

in particular installing DISLIN and getting it to work for me was cumbersome, because they are using an old verision of gcc to compile it. So you have to use ubuntu lts.

Clone the repo, put this into a file called Dockerfile and use docker build -t ubuntu-dev:16.04 . as well as docker run -it --rm -v $(pwd):/app ubuntu-dev:16.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant