mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-26 13:31:31 +08:00
Add a dockerfile, document its usage in the readme (#260)
This commit is contained in:
parent
64ff09bcba
commit
4a07e09b94
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM node:buster
|
||||||
|
|
||||||
|
RUN apt-get update -y \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
bundler \
|
||||||
|
ruby \
|
||||||
|
ruby-dev \
|
||||||
|
\
|
||||||
|
fontforge \
|
||||||
|
woff-tools \
|
||||||
|
woff2
|
||||||
|
|
||||||
|
CMD bash
|
21
README.md
21
README.md
@ -88,6 +88,27 @@ Or serve it on a local server on http://localhost:7998:
|
|||||||
|
|
||||||
$ npm run dev
|
$ npm run dev
|
||||||
|
|
||||||
|
### Build the font in a Docker container
|
||||||
|
|
||||||
|
Another possibility is to build the font using the Dockerfile provided.
|
||||||
|
|
||||||
|
First, build the Docker image:
|
||||||
|
|
||||||
|
$ docker build -t fa-builder .
|
||||||
|
|
||||||
|
Then, run the Docker container:
|
||||||
|
|
||||||
|
$ docker run --rm -it \
|
||||||
|
-u $(id -u):$(id -g) \
|
||||||
|
-v $(pwd):$(pwd) \
|
||||||
|
-w $(pwd) \
|
||||||
|
fa-builder
|
||||||
|
|
||||||
|
Within the container, build the font:
|
||||||
|
|
||||||
|
$ bundle install --path vendor/bundle
|
||||||
|
$ npm ci
|
||||||
|
$ make -C src/icons
|
||||||
|
|
||||||
<!--- reference links for badges -->
|
<!--- reference links for badges -->
|
||||||
[all-contrib]: https://img.shields.io/badge/all_contributors-125-orange.svg?style=flat-square "All Contributors badge"
|
[all-contrib]: https://img.shields.io/badge/all_contributors-125-orange.svg?style=flat-square "All Contributors badge"
|
||||||
|
Loading…
Reference in New Issue
Block a user