Skip to content

Commit

Permalink
reducing docker image from 1GB to 211MB
Browse files Browse the repository at this point in the history
  • Loading branch information
BananaAcid committed May 10, 2022
1 parent b8de438 commit 67df10c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:18
FROM node:18-alpine

LABEL author="Nabil Redmann (BananaAcid) <[email protected]>"
LABEL version="3.3.2"
LABEL version="3.3.3"
LABEL description="Node File Manager Server \
on NodeJS 18"

Expand Down
1 change: 1 addition & 0 deletions README.docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Exposed are
- adding users by commandline/env (v3.3.1)
- fixed env presented to docker to be FM_USER (v3.3.2)
- added compose file (v3.3.2)
- reducing docker image from 1GB to 211MB (v3.3.3)

## docker-compose.yaml
```yaml
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ $ node ./bin/node-file-manager-esm.mjs [...PARAMS]
- adding users by commandline/env (v3.3.1)
- fixed env presented to docker to be FM_USER (v3.3.2)
- added compose file (v3.3.2)
- reducing docker image from 1GB to 211MB (v3.3.3)

# Note about ES6: ESM support
The `Michael Jackson Script` or `.mjs` (or` modular JS`) extension is used by NodeJs to detect ECMAScript Modules with the `--experimental-modules` flag in NodeJS prior to v13. Since Babel does have problems `import.meta`, the `esm` npm module is used to transpill the code for older node versions. See the files within the `./bin` folder.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-file-manager-esm",
"version": "3.3.2",
"version": "3.3.3",
"description": "A simple file manager, based on Koa and Angular.js. Standalone, Koa-mountable. Import-able as ES6 and Babel module.",
"main": "index.mjs",
"engines": {
Expand Down

0 comments on commit 67df10c

Please sign in to comment.