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

docker: speed up building, improve documentation #2222

Merged
merged 3 commits into from
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# 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
Expand All @@ -26,6 +17,12 @@ ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

# Set the working directory
WORKDIR /usr/src/app

# Copy just the Gemfile and Gemfile.lock first to leverage Docker cache
COPY Gemfile Gemfile.lock ./

# Install any needed gems specified in Gemfile
RUN bundle install

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ services:
- "4000:4000"
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
command: make preview