Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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: 6 additions & 2 deletions docker/dev/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ RUN npm install --only=production --no-audit --no-fund --prefer-offline --progre
FROM base AS amd64
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && apt-get install -yq google-chrome-stable libxss1 && \
apt-get update && \
(apt-get install -yq google-chrome-stable libxss1 || \
(apt-get update && apt-get install -yq --fix-missing google-chrome-stable libxss1)) && \
rm -rf /var/lib/apt/lists/*

# ARM64-specific stage
FROM base AS arm64
RUN apt-get update && apt-get install -yq chromium libxss1 && \
RUN apt-get update && \
(apt-get install -yq chromium libxss1 || \
(apt-get update && apt-get install -yq --fix-missing chromium libxss1)) && \
ln -sf /usr/bin/chromium /usr/bin/google-chrome && \
rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 3 additions & 1 deletion docker/prod/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ RUN bower install --allow-root
# Install Chrome for testing (if needed)
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && apt-get install -yq google-chrome-stable libxss1 && \
apt-get update && \
(apt-get install -yq google-chrome-stable libxss1 || \
(apt-get update && apt-get install -yq --fix-missing google-chrome-stable libxss1)) && \
rm -rf /var/lib/apt/lists/*

# Set Chrome environment variables for production
Expand Down