Skip to content

Commit c120db8

Browse files
authored
Merge pull request #5499 from alphagov/jar-inline-unit-tests-image
Dockerfile: Inline contents of `unit-tests-image`
2 parents 10e49a5 + c96ece1 commit c120db8

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

docker/Dockerfile

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,32 @@ WORKDIR /home/vcap/app
2020

2121
##### Frontend Build Image ###################################################
2222
ARG NOTIFY_ENVIRONMENT=development
23-
ARG NODE_VERSION=20
2423

25-
FROM ghcr.io/alphagov/notify/unit-tests-image:python311-node20 as frontend_build
24+
FROM --platform=linux/amd64 node:20-slim AS node
25+
FROM --platform=linux/amd64 python:3.11-slim AS frontend_build
26+
27+
SHELL ["/bin/bash", "-c"]
28+
29+
RUN apt-get update && \
30+
apt-get install -y --no-install-recommends \
31+
# TODO: this entire block was inlined from unit-tests-image's Dockerfile.
32+
# Which of these are actually dependencies of admin,
33+
# which are dependencies of document-download-frontend (and can be removed)?
34+
make \
35+
curl \
36+
rlwrap \
37+
git \
38+
build-essential \
39+
libmagic-dev \
40+
libcurl4-openssl-dev \
41+
libssl-dev \
42+
libpng-dev \
43+
zip \
44+
openssh-client \
45+
&& rm -rf /var/lib/apt/lists/*
46+
47+
COPY --from=node /usr/local/lib /usr/local/lib
48+
COPY --from=node /usr/local/bin /usr/local/bin
2649

2750
WORKDIR /usr/frontend
2851
COPY app app

0 commit comments

Comments
 (0)