diff --git a/node/10.21.0/20.03-lts-sp1/Dockerfile b/node/10.21.0/20.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..4f8f09a5739906a19498aae9d3936b922de24091 --- /dev/null +++ b/node/10.21.0/20.03-lts-sp1/Dockerfile @@ -0,0 +1,8 @@ +FROM openeuler/openeuler:20.03-lts-sp1 + +MAINTAINER Yikun Jiang + +RUN yum -y update && yum clean all +RUN yum -y install nodejs npm && yum clean all + +CMD [ "node" ] diff --git a/node/README.md b/node/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d3774f256a32a79bc071a8a6bb6c893383f0e750 --- /dev/null +++ b/node/README.md @@ -0,0 +1,31 @@ +# Node.js + +# Quick reference + +- The official Node.js docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) + +# Build reference + +1. Build images and push: +```shell +docker buildx build -t "openeuler/node:$VERSION" --platform linux/amd64,linux/arm64 . --push +``` + +We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) + +2. Run: +```shell +docker run -ti openeuler/node:10.21.0-20.03-lts-sp1 +``` + +# Supported tags and respective Dockerfile links + +- 10.21.0-20.03-lts-sp1: node v10.21.0, openEuler 20.03 LTS SP1 + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. +