From f682c12934058ebf3e55704f7c35a88fe0286112 Mon Sep 17 00:00:00 2001 From: Harsha Goli Date: Mon, 4 Mar 2024 20:54:24 -0500 Subject: [PATCH] New dockerfile and docker-compose --- Dockerfile | 33 +++++++++++++++++++++++++++++++++ docker-compose.yml | 11 +++++++++++ 2 files changed, 44 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..7e4c60dbba --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +# Use an official Ruby runtime as a parent image +FROM ruby:2.6.4 + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Clone the bitcoinops.github.io repository +RUN git clone https://github.com/bitcoinops/bitcoinops.github.io.git + +# Change to the repository directory +WORKDIR /usr/src/app/bitcoinops.github.io + +# Install program to configure locales +RUN apt-get update +RUN apt-get install -y locales +RUN dpkg-reconfigure locales && \ + locale-gen C.UTF-8 && \ + /usr/sbin/update-locale LANG=C.UTF-8 + +# Install needed default locale for Makefly +RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \ + locale-gen + +# Set default locale for the environment +ENV LC_ALL C.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US.UTF-8 + +# Install any needed gems specified in Gemfile +RUN bundle install + +# Make port 4000 available to the world outside this container +EXPOSE 4000 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..2aea5e55fe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3' + +services: + bitcoinops: + build: . + ports: + - "4000:4000" + volumes: + - .:/usr/src/app + working_dir: /usr/src/app + command: /bin/bash