<p><b>@fazlerabbi37</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2272#discussion_r295683337">docker/Dockerfile</a>:</p>
<pre style='color:#555'>> @@ -0,0 +1,25 @@
+FROM ruby:2.5-slim
+
+#install packages
+#fixes dpkg man page softlink error while installing postgresql-client [source: https://github.com/debuerreotype/debuerreotype/issues/10#issuecomment-438342078]
+RUN mkdir -p /usr/share/man/man1 && mkdir -p /usr/share/man/man7
+RUN apt-get update && apt-get install curl -y
+RUN curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh && bash nodesource_setup.sh && rm nodesource_setup.sh
+RUN apt-get install -y --no-install-recommends ruby-dev libarchive-dev libmagickwand-dev libxml2-dev libxslt1-dev build-essential libpq-dev libsasl2-dev imagemagick libffi-dev locales postgresql-client-9.6 nodejs && apt-get clean && rm -rf /var/lib/apt/lists/*
</pre>
<blockquote>
<p>This all looks horribly wrong anyway - why is is creating directories by hand?</p>
</blockquote>
<p>as I have mentioned on the comment above the command, while installing <code>postgresql-client</code>, because <code>update-alternatives</code> can't create symbolic link, <code>dpkg</code> throws an error and exits with code 100. A quick search pointed to <a href="https://stackoverflow.com/a/52655008/5350059" rel="nofollow">this</a> stack answer which solves the problem.</p>
<blockquote>
<p>And downloading and installing node from upstream using a dodgy "run this shell script as root" install method isn't going to fly. Why not just use the ubuntu packaged one?</p>
</blockquote>
<p>the image <code>ruby:2.5-slim</code> usages  Debian 9 (stretch) as base image. Though I could install <code>nodejs</code> using the office Debian repo , I couldn't install <code>npm</code> using the <code>apt-get</code> command as it gives <code>E: Unable to locate package npm</code> error. I followed the official download <a href="https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions-enterprise-linux-fedora-and-snap-packages" rel="nofollow">instruction</a> which leads to NodeSource's GitHub <a href="https://github.com/nodesource/distributions/blob/master/README.md#debinstall">instruction</a> and installed <code>nodejs</code> and <code>npm</code>.</p>
<p>If there is any better way to solve this, I would be happy to hear. <g-emoji class="g-emoji" alias="blush" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f60a.png">😊</g-emoji></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2272?email_source=notifications&email_token=AAK2OLMIAZWO66A3EOBICYLP3MZIVA5CNFSM4HZNXSCKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4DVP3Q#discussion_r295683337">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLIJ7UFY3N7X3BDIUTP3MZIVANCNFSM4HZNXSCA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLIHHBQP4HHMSJQ4QSLP3MZIVA5CNFSM4HZNXSCKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4DVP3Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2272?email_source=notifications\u0026email_token=AAK2OLMIAZWO66A3EOBICYLP3MZIVA5CNFSM4HZNXSCKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4DVP3Q#discussion_r295683337",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2272?email_source=notifications\u0026email_token=AAK2OLMIAZWO66A3EOBICYLP3MZIVA5CNFSM4HZNXSCKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4DVP3Q#discussion_r295683337",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>