Task: Add docker yarn

This commit is contained in:
Sambo Chea 2021-07-14 16:14:33 +07:00
parent 75e3594abf
commit 779bb6ca2d
3 changed files with 13 additions and 14 deletions

View File

@ -50,6 +50,9 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/modprobe
# Install Yarn
RUN apk add --update --no-cache yarn
ENV DOCKER_TLS_CERTDIR=/certs
RUN mkdir /certs /certs/client && chmod 1777 /certs /certs/client

View File

@ -1,13 +1,10 @@
DOCKER_IMAGE=cubetiq/calpine-docker
DOCKER_IMAGE_NAME=${DOCKER_IMAGE}:20.10.7
DOCKER_IMAGE=cubetiq/calpine-docker-yarn
build:
@echo 'Starting docker build'
docker build . -t ${DOCKER_IMAGE}
@echo 'Starting docker push'
docker tag ${DOCKER_IMAGE} ${DOCKER_IMAGE_NAME}
docker push ${DOCKER_IMAGE}
docker push ${DOCKER_IMAGE_NAME}
.PHONY:build

View File

@ -1,33 +1,32 @@
# CUBETIQ Alpine OS Linux with Docker 20.10.7
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cubetiq/calpine-docker)
![Docker Pulls](https://img.shields.io/docker/pulls/cubetiq/calpine-docker)
# CUBETIQ Alpine OS Linux with Docker and Yarn
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cubetiq/calpine-docker-yarn)
![Docker Pulls](https://img.shields.io/docker/pulls/cubetiq/calpine-docker-yarn)
- CUBETIQ Alpine OS Linux (3.13.3)
- Docker (20.10.7)
- Yarn (1.22)
# [Docker Hub](https://hub.docker.com/r/cubetiq/calpine-docker)
# [Docker Hub](https://hub.docker.com/r/cubetiq/calpine-docker-yarn)
```shell
docker push cubetiq/calpine-docker
docker push cubetiq/calpine-docker-yarn
```
# Usage
```shell
docker run --rm -it cubetiq/calpine-docker /bin/sh
docker run --rm -it cubetiq/calpine-docker-yarn /bin/sh
```
# Example
```Dockerfile
FROM cubetiq/calpine-docker:latest
FROM cubetiq/calpine-docker-yarn:latest
LABEL maintainer="sombochea@cubetiqs.com"
RUN docker version
RUN yarn --version
CMD [ "sh" ]
```
# Reference
- Docker: [GitHub](https://github.com/docker-library/docker/tree/279ba9c93e8e26a15171645bd511ea8476c4706e/20.10)
# Contributors
- Sambo Chea <sombochea@cubetiqs.com>