-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM node:20-alpine | ||
|
||
EXPOSE 8850/tcp | ||
WORKDIR /app | ||
|
||
RUN npm install http-server -g && \ | ||
npm install [email protected] [email protected] [email protected] | ||
|
||
RUN apk add --no-cache bash | ||
|
||
COPY node-bootstrap/download-fonts.sh /download-fonts.sh | ||
RUN bash /download-fonts.sh /app/node_modules/bootswatch | ||
RUN mkdir -p /app/icons | ||
|
||
ENTRYPOINT ["http-server"] | ||
CMD ["--cors", "-p", "8850"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,25 @@ | |
http-server hosting node modules for my projects locally | ||
|
||
# Tags | ||
[5.3.0](https://github.com/aceberg/my-dockerfiles/blob/main/node-bootstrap/Dockerfile-5.3.0), [latest](https://github.com/aceberg/my-dockerfiles/blob/main/node-bootstrap/Dockerfile-5.3.0): | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] with google fonts | ||
[5.3.2](https://github.com/aceberg/my-dockerfiles/blob/main/node-bootstrap/Dockerfile-5.3.2), [latest](https://github.com/aceberg/my-dockerfiles/blob/main/node-bootstrap/Dockerfile-5.3.2): | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] with google fonts | ||
|
||
<details> | ||
<summary>Old tags</summary> | ||
<a href="https://github.com/aceberg/my-dockerfiles/blob/main/node-bootstrap/Dockerfile-5.3.0">5.3.0</a>:<br> | ||
<li>[email protected]</li> | ||
<li>[email protected]</li> | ||
<li>[email protected] with google fonts</li> | ||
</details> | ||
|
||
## Usage | ||
|
||
If you want to use local icons in [miniboard](https://github.com/aceberg/miniboard), download them and mount icon folder (`~/.dockerdata/icons` in this example) to `/app/icons`. Then you can open it in browser and copy each icon link to miniboard. | ||
```sh | ||
docker run --name node-bootstrap \ | ||
-p 8850:8850 \ | ||
docker run --name node-bootstrap \ | ||
-v ~/.dockerdata/icons:/app/icons \ # Only for local icons | ||
-p 8850:8850 \ | ||
aceberg/node-bootstrap | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION=5.3.0 | ||
VERSION=5.3.2 |