Skip to content

Commit

Permalink
Add build dependencies of isolated-vm to container
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Aug 8, 2023
1 parent 3cc2b14 commit 4e9322b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backstage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM docker.io/library/node:18-bullseye-slim AS build

WORKDIR /app

RUN apt-get update \
&& apt-get install -y \
python3 g++ build-essential

COPY package.json yarn.lock ./
COPY packages/app/package.json packages/app/package.json
COPY packages/backend/package.json packages/backend/package.json
Expand Down Expand Up @@ -36,6 +40,12 @@ FROM docker.io/library/node:18-bullseye-slim as backend

WORKDIR /app

RUN apt-get update \
&& apt-get install -y \
python3 g++ build-essential \
&& rm -rf /var/lib/apt/lists/*


COPY --from=build /app/package.json /app/yarn.lock /app/packages/backend/dist/skeleton ./

RUN --mount=type=cache,target=/root/.cache/yarn,sharing=locked \
Expand Down

0 comments on commit 4e9322b

Please sign in to comment.