-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (40 loc) · 1.2 KB
/
Dockerfile
File metadata and controls
52 lines (40 loc) · 1.2 KB
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
ARG SORBET_TAG=latest
ARG DRCTL_TAG=latest
FROM ghcr.io/scality/sorbet:$SORBET_TAG AS sorbet
FROM ghcr.io/scality/zenko-drctl:$DRCTL_TAG AS drctl
FROM node:24-bookworm-slim
ARG AWSCLI_VERSION=2.17.39
# Default to SDK mode (faster than CLI mode)
ENV SDK=true
RUN mkdir -p /ctst
WORKDIR /ctst
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
ssh \
git \
curl \
unzip \
jq \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWSCLI_VERSION}.zip" -o "awscliv2.zip" -k \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -rf awscliv2.zip aws
COPY package.json ./
COPY yarn.lock ./
RUN --mount=type=secret,id=GIT_AUTH_TOKEN \
git config --global url."https://x-access-token:$(cat /run/secrets/GIT_AUTH_TOKEN)@github.com/".insteadOf "https://github.com/" && \
yarn cache clean && \
yarn install --frozen-lockfile
COPY ./features ./features
COPY ./common ./common
COPY ./steps ./steps
COPY ./world ./world
COPY ./tsconfig.json ./
COPY ./cucumber.config.cjs ./
COPY --from=sorbet /sorbetctl .
COPY --from=drctl /zenko-drctl .