Skip to content
Merged
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
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
# and takes longer to build but that is worth it.
FROM bitnami/minideb:buster AS base

RUN install_packages apt-transport-https gnupg2 ca-certificates

RUN echo "deb https://archive.debian.org/debian/ buster main" > /etc/apt/sources.list && \
echo "deb https://archive.debian.org/debian-security/ buster/updates main" >> /etc/apt/sources.list

# TODO install_packages calls apt-get update and then nukes the list files after. We should avoid multiple calls to apt-get update.....
# We could probably fix this by running the update and installs ourself with `RUN --mount type=cache` but that is "experimental"

RUN install_packages apt-transport-https gnupg2 ca-certificates

COPY .docker/apt/keys/nodesource.gpg /
RUN apt-key add /nodesource.gpg
COPY .docker/apt/sources.list.d/nodesource.list /etc/apt/sources.list.d/
RUN install_packages \
build-essential python2 \
# needed for compiling native modules on ARM
nodejs ruby \
curl ruby \
# Used both to install dependencies and at run time
bash less \
# Just in case you have to shell into the image
Expand All @@ -37,6 +37,8 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN curl -sL https://deb.nodesource.com/setup_22.x | bash -
RUN install_packages nodejs

FROM base AS ruby_deps
RUN install_packages \
Expand Down