Skip to content

Commit aa2cd92

Browse files
committed
UPD: fix Dockerfile commandas
1 parent 81d63fc commit aa2cd92

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ ENV PYTHON=/usr/bin/python3
2727
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
2828
--mount=type=cache,target=/var/lib/apt,sharing=locked \
2929
apt-get update && \
30-
apt-get install -y --no-install-recommends python3 g++ build-essential && \
30+
apt-get install -y --no-install-recommends \
31+
python3 \
32+
g++ \
33+
build-essential \
34+
libcairo2-dev \
35+
libpango1.0-dev \
36+
libjpeg-dev \
37+
libgif-dev \
38+
librsvg2-dev \
39+
pkg-config && \
3140
rm -rf /var/lib/apt/lists/*
3241

3342
# Enable Corepack (for Yarn management) and install the required Yarn version
@@ -48,14 +57,11 @@ COPY --from=packages --chown=node:node /app/backstage.json ./
4857
RUN mkdir -p /home/node/.cache/node/corepack/v1 && \
4958
chown -R node:node /home/node/.cache
5059

51-
# Skip optional dependencies like canvas that aren't needed for Backstage
52-
ENV YARN_ENABLE_OPTIONAL_DEPENDENCIES=0
5360

5461
#ENV CYPRESS_INSTALL_BINARY=0
5562
#RUN yarn install --immutable --network-timeout 600000
5663
RUN --mount=type=cache,target=/home/node/.cache/yarn,sharing=locked,uid=1000,gid=1000 \
57-
yarn install --immutable --inline-builds
58-
64+
yarn install --immutable
5965

6066
COPY --chown=node:node . .
6167

0 commit comments

Comments
 (0)