Skip to content

Commit

Permalink
Add Dockerfile for Linux mint
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Apr 4, 2024
1 parent c2684cd commit 241705b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ You can find some basic Dockerfiles here for various system images.

These are used for testing and are not optimized for size and configuration. If you run the container it will
run all unittests.

.. code-block:: bash
$ cd <move to directory with the Dockerfile you want to use>
$ docker build -t bitcoinlib .
$ docker run -it bitcoinlib
22 changes: 22 additions & 0 deletions docker/mint/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM linuxmintd/mint22-amd64
MAINTAINER Cryp Toon <[email protected]>

WORKDIR /code

RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y \
software-properties-common git \
build-essential python3-dev libgmp3-dev python3-pip python3.12-venv

ENV TZ=Europe/Brussels
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get install -y postgresql postgresql-contrib mariadb-server libpq-dev pkg-config default-libmysqlclient-dev
RUN apt-get clean

RUN git clone https://github.com/1200wd/bitcoinlib.git

WORKDIR /code/bitcoinlib
RUN python3 -m venv /opt/venv
RUN /opt/venv/bin/python3 -m pip install .[dev]

CMD /opt/venv/bin/python3 -m unittest

0 comments on commit 241705b

Please sign in to comment.