Upgrade node to 16.15.0 and yarn 1.22.18 and add node git
This commit is contained in:
parent
e22f13c105
commit
cb5d8ace85
@ -4,8 +4,8 @@ LABEL maintainer="sombochea@cubetiqs.com"
|
|||||||
# Build with root access
|
# Build with root access
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ENV NODE_VERSION 16.13.1
|
ENV NODE_VERSION 16.15.0
|
||||||
ENV NODE_SHA256 3b4c47e5554fa466651a767691fc76c09b6a514b49d79bbd0061e549614adedf
|
ENV NODE_SHA256 4db62cabc0647fc18f537ed10b5573f3c23ffb4d4434e40713e7e472f1ed4e55
|
||||||
ENV USER_UID 1001
|
ENV USER_UID 1001
|
||||||
|
|
||||||
RUN addgroup -g ${USER_UID} node \
|
RUN addgroup -g ${USER_UID} node \
|
||||||
@ -80,7 +80,7 @@ RUN addgroup -g ${USER_UID} node \
|
|||||||
&& node --version \
|
&& node --version \
|
||||||
&& npm --version
|
&& npm --version
|
||||||
|
|
||||||
ENV YARN_VERSION 1.22.17
|
ENV YARN_VERSION 1.22.18
|
||||||
|
|
||||||
RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
|
RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
|
||||||
&& for key in \
|
&& for key in \
|
||||||
|
12
Dockerfile.git
Normal file
12
Dockerfile.git
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM cubetiq/calpine-node:latest
|
||||||
|
LABEL maintainer="sombochea@cubetiqs.com"
|
||||||
|
|
||||||
|
RUN apk update && apk add --no-cache git
|
||||||
|
|
||||||
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
|
||||||
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
|
||||||
|
CMD [ "node" ]
|
7
Makefile
7
Makefile
@ -1,4 +1,5 @@
|
|||||||
DOCKER_IMAGE=cubetiq/calpine-node
|
DOCKER_IMAGE=cubetiq/calpine-node
|
||||||
|
DOCKER_IMAGE_GIT=cubetiq/calpine-node-git
|
||||||
DOCKER_IMAGE_NAME=${DOCKER_IMAGE}:16
|
DOCKER_IMAGE_NAME=${DOCKER_IMAGE}:16
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@ -10,4 +11,10 @@ build:
|
|||||||
docker push ${DOCKER_IMAGE}
|
docker push ${DOCKER_IMAGE}
|
||||||
docker push ${DOCKER_IMAGE_NAME}
|
docker push ${DOCKER_IMAGE_NAME}
|
||||||
|
|
||||||
|
@echo 'Starting docker build with git'
|
||||||
|
docker build -f Dockfile.git . -t ${DOCKER_IMAGE}
|
||||||
|
|
||||||
|
@echo 'Starting docker push with git'
|
||||||
|
docker push ${DOCKER_IMAGE_GIT}
|
||||||
|
|
||||||
.PHONY:build
|
.PHONY:build
|
14
README.md
14
README.md
@ -1,22 +1,26 @@
|
|||||||
# CUBETIQ Alpine OS Linux with Nodejs 16
|
# CUBETIQ Alpine OS Linux with Nodejs 16
|
||||||
|
|
||||||
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cubetiq/calpine-node)
|
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cubetiq/calpine-node)
|
||||||
![Docker Pulls](https://img.shields.io/docker/pulls/cubetiq/calpine-node)
|
![Docker Pulls](https://img.shields.io/docker/pulls/cubetiq/calpine-node)
|
||||||
|
|
||||||
- CUBETIQ Alpine OS Linux (3.13.3)
|
- CUBETIQ Alpine OS Linux
|
||||||
- Nodejs 16 (16.13.1)
|
- Nodejs 16 (16.15.0)
|
||||||
- Yarn 1.22.17
|
- Yarn 1.22.18
|
||||||
|
|
||||||
# [Docker Hub](https://hub.docker.com/r/cubetiq/calpine-node)
|
# [Docker Hub](https://hub.docker.com/r/cubetiq/calpine-node)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker push cubetiq/calpine-node:latest
|
docker push cubetiq/calpine-node:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run --rm -it cubetiq/calpine-node:latest /bin/sh
|
docker run --rm -it cubetiq/calpine-node:latest /bin/sh
|
||||||
```
|
```
|
||||||
|
|
||||||
# Example
|
# Example
|
||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM cubetiq/calpine-node:latest
|
FROM cubetiq/calpine-node:latest
|
||||||
LABEL maintainer="sombochea@cubetiqs.com"
|
LABEL maintainer="sombochea@cubetiqs.com"
|
||||||
@ -31,9 +35,11 @@ CMD [ "node" , "index.js"]
|
|||||||
```
|
```
|
||||||
|
|
||||||
# Contributors
|
# Contributors
|
||||||
|
|
||||||
- Sambo Chea <sombochea@cubetiqs.com>
|
- Sambo Chea <sombochea@cubetiqs.com>
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
```text
|
```text
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
@ -55,4 +61,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECT
|
OUT OF OR IN CONNECT
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user