open-index/open-npm huggingface dataset:
npm package: @serverless/docker
Description: Instantly build and push your Docker images with [Serverless Components](https://github.com/serverless/components). Supports the configuration of the Docker Daemon as well as the Container Registry.
Author: Serverless, Inc.
Latest version: 0.1.0

# docker

Instantly build and push your Docker images with [Serverless Components](https://github.com/serverless/components). Supports the configuration of the Docker Daemon as well as the Container Registry.

&nbsp;

1. [Install](#1-install)
2. [Create](#2-create)
3. [Configure](#3-configure)
4. [Deploy](#4-deploy)

&nbsp;

### 1. Install

```console
$ npm install -g serverless
```

### 2. Create

Just create a `serverless.yml` file

```console
$ touch serverless.yml
```

```
# .env
DOCKER_USERNAME=XXX
DOCKER_PASSWORD=XXX
```

### 3. Configure

```yml
# serverless.yml

myImage:
  component: '@serverless/docker'
  inputs:
    dockerHost: '192.168.2.1' # default is `'127.0.0.1'`
    dockerPort: 4711 # default is `3000`
    dockerfile: my-app.dockerfile # default is `Dockerfile`
    context: '.' # default is `process.cwd()`
    registryAddress: 'https://container-registry.acme.com' # default is `'https://index.docker.io/v1'`
    push: true # default is `false`
    repository: acme/my-image
    tag: latest
```

### 4. Deploy

```console
$ serverless
```

### New to Components?

Checkout the [Serverless Components](https://github.com/serverless/components) repo for more information.
npm package: @serverless/docker-image
Description: Instantly build and push your Docker images with [Serverless Components](https://github.com/serverless/components). Supports the configuration of the Docker Daemon as well as the Container Registry.
Author: Serverless, Inc.
Latest version: 0.3.0

# docker-image

Instantly build and push your Docker images with [Serverless Components](https://github.com/serverless/components). Supports the configuration of the Docker Daemon as well as the Container Registry.

&nbsp;

1. [Install](#1-install)
2. [Create](#2-create)
3. [Configure](#3-configure)
4. [Deploy](#4-deploy)

&nbsp;

### 1. Install

```console
$ npm install -g serverless
```

### 2. Create

Just create a `serverless.yml` file

```console
$ touch serverless.yml
```

```
# .env
DOCKER_USERNAME=XXX
DOCKER_PASSWORD=XXX
```

### 3. Configure

```yml
# serverless.yml

myImage:
  component: '@serverless/docker-image'
  inputs:
    dockerHost: '192.168.2.1' # default is `'127.0.0.1'`
    dockerPort: 4711 # default is `3000`
    dockerfile: my-app.dockerfile # default is `Dockerfile`
    context: '.' # default is `process.cwd()`
    registryAddress: 'https://container-registry.acme.com' # default is `'https://index.docker.io/v1'`
    push: true # default is `false`
    repository: acme/my-image
    tag: latest
```

### 4. Deploy

```console
$ serverless
```

### New to Components?

Checkout the [Serverless Components](https://github.com/serverless/components) repo for more information.
npm package: @serverless/domain
Description: Easily provision custom domains for:
Author: Serverless, Inc.
Latest version: 6.1.0

# Domain

Easily provision custom domains for:

- Static websites hosted on AWS CloudFront & AWS S3 via the Website Component.
- APIs built via the Backend Component.

### Inputs

```yaml

domain:
  component: '@serverless/domain'
  inputs:
    privateZone: false
    domain: mywebsite.com
    subdomains:
      www: ${websiteComponentInstance}
      api: ${backendComponentInstance}
      admin: ${anotherWebsiteComponentInstance}

```

### Set-Up

First, you must purchase your domain within Route53 manually.  Then add it to the Component, as demonstrated above.

### Using With The Website Component

When used with the Website Component, the domain component will...

- Create an AWS ACM Certificate, if one does not already exists for the domain.
- Create an AWS Cloudfront Distribution that uses the AWS ACM Certificate.
- Create Records in AWS Route 53 to point your custom domain to your AWS Cloudfront Distribution.