Files
thuanle 32f2065446
docker-node image / build (arm64) (push) Successful in 15s
node-go image / build (arm64) (push) Successful in 16s
node-go image / build (amd64) (push) Successful in 7s
docker-node image / build (amd64) (push) Successful in 48s
node-python image / build (amd64) (push) Successful in 8s
docker-node image / amend-manifest (push) Successful in 5s
node-python image / build (arm64) (push) Successful in 15s
node-go image / amend-manifest (push) Successful in 15s
node-python image / amend-manifest (push) Successful in 14s
feat: update workflows and Dockerfiles for node-go, node-python, and docker-node images
2026-06-23 16:49:10 +07:00

29 lines
966 B
Docker

FROM node:lts-slim
ARG GO_VERSION=1.26
ENV DEBIAN_FRONTEND=noninteractive \
PATH=/usr/local/go/bin:${PATH}
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends ca-certificates curl git gcc libc6-dev; \
arch="$(dpkg --print-architecture)"; \
case "${arch}" in \
amd64) go_arch='linux-amd64' ;; \
arm64) go_arch='linux-arm64' ;; \
*) echo "Unsupported architecture: ${arch}" >&2; exit 1 ;; \
esac; \
case "${GO_VERSION}" in \
*.*.*) download_go_version="${GO_VERSION}" ;; \
*.*) download_go_version="${GO_VERSION}.0" ;; \
*) echo "GO_VERSION must be major.minor or major.minor.patch: ${GO_VERSION}" >&2; exit 1 ;; \
esac; \
curl -fsSL "https://go.dev/dl/go${download_go_version}.${go_arch}.tar.gz" -o /tmp/go.tgz; \
rm -rf /usr/local/go; \
tar -C /usr/local -xzf /tmp/go.tgz; \
rm -f /tmp/go.tgz; \
rm -rf /var/lib/apt/lists/*
WORKDIR /app