# Image is larger than 1 GB

The image your Dockerfile produced is over the 1 GB limit. Full base images, build tools and dev dependencies left in the final image are the usual reasons.

## The error

```
Image is 1350 MB, the limit is 1024 MB. Use a smaller base image or a multi-stage build.
```

## Why it happens

The image your Dockerfile produced is over the 1 GB limit. Full base images, build tools and dev dependencies left in the final image are the usual reasons.

## How to fix it

Use a slim or Alpine base image, and copy only the build output into a final stage of a multi-stage build.

```
ezhst build dockerfile show
ezhst build dockerfile set -f Dockerfile
ezhst redeploy
```

## Still stuck

Read the [build log](/docs/cli/deployments-log) and [runtime logs](/docs/cli/logs), or browse [all errors](/errors).
