-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·60 lines (46 loc) · 2.2 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM ghcr.io/actions/actions-runner:latest
ENV TZ="Europe/Riga"
# SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# # Install buildx
# COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx
# RUN docker buildx install
# # webpack 4 - doesn't support node 18.
# # ENV NODE_OPTIONS=--openssl-legacy-provider
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
# # Install:
# # yarn, google-cloud-sdk
# # libodbc1 для mssql npm пакета
# # hadolint ignore=DL3004
# # xvfb для кипра
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
RUN sudo apt update && \
sudo apt-get install -y \
nodejs \
zip \
# npm \
tzdata \
# build-essential \
google-cloud-sdk \
kubectl \
--no-install-recommends
# libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \
# libodbc1 \
# git-lfs \
# # https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
# google-cloud-sdk-gke-gcloud-auth-plugin \
# qemu \
# && \
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 curl -sL firebase.tools | bash
RUN sudo rm -rf /var/lib/apt/lists/*
# RUN gcloud auth configure-docker europe-west4-docker.pkg.dev,europe-north1-docker.pkg.dev
COPY prepare-gcloud.sh ./