-
Notifications
You must be signed in to change notification settings - Fork 0
/
ya.Dockerfile
executable file
·41 lines (28 loc) · 1.26 KB
/
ya.Dockerfile
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
FROM bitnami/kubectl AS kubectl
FROM ghcr.io/actions/actions-runner:latest
ENV TZ="Europe/Riga"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/
RUN sudo apt update && sudo apt install -y apt-transport-https ca-certificates curl gnupg
# Node 22
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
# YC
RUN curl -sSL https://storage.yandexcloud.net/yandexcloud-yc/install.sh | bash
RUN sudo ln -s /home/runner/yandex-cloud/bin/docker-credential-yc /usr/local/bin/docker-credential-yc
RUN sudo ln -s /home/runner/yandex-cloud/bin/yc /usr/local/bin/yc
# # Install:
RUN sudo apt update && \
sudo apt-get install -y \
nodejs \
zip \
tzdata \
--no-install-recommends
RUN sudo npm install -g corepack
# RUN node --version && npm --version
# додаємо depcheck щоб швидше запускався
RUN npx depcheck --version && \
# npx esbuild --version && \
npx hasura-cli@2.36.2 version
RUN sudo rm -rf /var/lib/apt/lists/*
COPY prepare-ya.sh ./