File size: 1,556 Bytes
45721da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM mcr.microsoft.com/playwright:v1.37.1-jammy

ENV DEBIAN_FRONTEND=noninteractive
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright

RUN set -eux; \
    for source_file in \
      /etc/apt/sources.list.d/nodesource.list \
      /etc/apt/sources.list.d/nodesource.sources; do \
      if [ -f "$source_file" ]; then \
        mv "$source_file" "${source_file}.disabled"; \
      fi; \
    done; \
    printf '%s\n' \
      'Acquire::Retries "5";' \
      'Acquire::http::Timeout "30";' \
      'Acquire::https::Timeout "30";' \
      'Acquire::http::Pipeline-Depth "0";' \
      'Acquire::https::Pipeline-Depth "0";' \
      'Acquire::BrokenProxy "true";' \
      > /etc/apt/apt.conf.d/80-retries; \
    sed -i \
      's|http://archive.ubuntu.com|https://archive.ubuntu.com|g; s|http://security.ubuntu.com|https://security.ubuntu.com|g' \
      /etc/apt/sources.list; \
    success=0; \
    for attempt in 1 2 3 4 5; do \
      if apt-get update && apt-get install -y --no-install-recommends \
        ca-certificates \
        curl \
        git \
        patch \
        wget; then \
        success=1; \
        break; \
      fi; \
      sleep $((attempt * 5)); \
    done; \
    if [ "$success" -ne 1 ]; then exit 1; fi; \
    apt-get clean; \
    find /var/lib/apt/lists -mindepth 1 -delete

RUN git clone https://github.com/ionic-team/ionic-framework.git /testbed && \
    cd /testbed && \
    git checkout --detach 314055cf7a66a58e4e88c22e6e755fadd494ed70

WORKDIR /testbed

RUN cd core && \
    npm ci && \
    npm run build -- --ci

CMD ["/bin/bash"]