File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,32 @@ WORKDIR /home/vcap/app
2020
2121# #### Frontend Build Image ###################################################
2222ARG 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
2750WORKDIR /usr/frontend
2851COPY app app
You can’t perform that action at this time.
0 commit comments