Skip to content

Commit fe96557

Browse files
committed
Add libyaml-dev to Dockerfile
This is required to build the psych Gem. Prior to this commit, running `docker compose build` would fail with: ``` 65.20 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 65.20 65.20 current directory: /usr/local/bundle/gems/psych-5.1.2/ext/psych 65.20 /usr/local/bin/ruby extconf.rb 65.20 checking for yaml.h... no 65.20 yaml.h not found 65.20 *** extconf.rb failed *** ``` I don't understand why I'm seeing this error now because there don't appear to be any changes in the Dockerfile or docker-compose.yml files that could've caused it.
1 parent 9445fed commit fe96557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FROM base AS builder
1818
WORKDIR /app
1919
RUN apt-get update \
2020
&& apt-get install --yes --no-install-recommends \
21-
build-essential libpq-dev libxml2-dev libxslt1-dev git \
21+
build-essential libpq-dev libxml2-dev libxslt1-dev git libyaml-dev \
2222
firefox-esr python2-dev \
2323
&& rm -rf /var/lib/apt/lists/* /var/lib/apt/archives/*.deb
2424
COPY Gemfile Gemfile.lock /app/

0 commit comments

Comments
 (0)