Skip to content

Commit

Permalink
Removed unused docker files, updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Umkus committed Mar 12, 2023
1 parent 9b0950f commit 677f9ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

17 changes: 0 additions & 17 deletions Dockerfile

This file was deleted.

11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# AWS Sharp layer
This AWS lambda layer contains a pre-built [sharp](https://www.npmjs.com/package/sharp) npm library, so that you could "just use" it in your lambda code:
This AWS lambda layer contains a latest pre-built vanilla [sharp](https://www.npmjs.com/package/sharp) npm library, so that you could "just use" it in your lambda code:

```javascript
import sharp from 'sharp'
// ...
```

It holds only necessary files to minimize its weight (16Mb).
It also supports all currently supported AWS lambda node runtimes (>=`nodejs14.x`) and architectures (`x86_64` and `arm64`).
It contains only necessary files to minimize its weight (16Mb).
It also supports all current AWS lambda node runtimes (>=`nodejs14.x`) and architectures (`x86_64` and `arm64`).

# Getting
A pre-built layer zip file is available on the [Releases page](../../releases).
Expand All @@ -24,9 +24,10 @@ aws lambda publish-layer-version \
```

# Building
Install dependencies (this will wipe your existing `node_modules/` directory):
Simply run (this will wipe your existing `node_modules/` directory):
```shell
npm ci --arch=x64 --platform=linux
```

Build will be performed automatically upon deps installation.
Build will be performed automatically upon deps installation.
The resulted lambda layer zip file will be saved to `dist/` directory.

0 comments on commit 677f9ae

Please sign in to comment.