mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Use make to build ameba in docker, add installation info
This commit is contained in:
parent
970d341ea0
commit
bbb0cf51e7
3 changed files with 19 additions and 9 deletions
|
@ -1,8 +1,4 @@
|
||||||
.*
|
.*
|
||||||
Dockerfile
|
!Makefile
|
||||||
Makefile
|
!shard.yml
|
||||||
bench/
|
!src
|
||||||
bin/
|
|
||||||
spec/
|
|
||||||
|
|
||||||
*.html
|
|
|
@ -1,9 +1,9 @@
|
||||||
FROM alpine:3.8 as builder
|
FROM alpine:3.8 as builder
|
||||||
RUN apk add --update crystal shards openssl-dev yaml-dev libxml2-dev musl-dev
|
RUN apk add --update crystal shards openssl-dev yaml-dev musl-dev make
|
||||||
RUN mkdir /ameba
|
RUN mkdir /ameba
|
||||||
WORKDIR /ameba
|
WORKDIR /ameba
|
||||||
COPY . /ameba/
|
COPY . /ameba/
|
||||||
RUN shards build --release
|
RUN make clean && make
|
||||||
|
|
||||||
FROM alpine:3.8
|
FROM alpine:3.8
|
||||||
RUN apk add --update openssl yaml pcre gc libevent libgcc
|
RUN apk add --update openssl yaml pcre gc libevent libgcc
|
||||||
|
|
14
README.md
14
README.md
|
@ -82,6 +82,20 @@ $ brew tap veelenga/tap
|
||||||
$ brew install ameba
|
$ brew install ameba
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
|
||||||
|
Build the image:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ docker build -t ameba/ameba .
|
||||||
|
```
|
||||||
|
|
||||||
|
To use the resulting image on a local source folder, mount the current (or target) directory into `/src`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ docker run -v $(pwd):/src ameba/ameba
|
||||||
|
```
|
||||||
|
|
||||||
### From sources
|
### From sources
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
Loading…
Reference in a new issue