mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-07 13:38:17 -08:00
Add docker tasks.
This commit is contained in:
parent
5a45e720fb
commit
ad17bf0e32
2 changed files with 15 additions and 2 deletions
|
|
@ -2,7 +2,6 @@ FROM alpine:3.4
|
|||
|
||||
RUN apk add --no-cache g++ make go
|
||||
|
||||
|
||||
RUN mkdir -p /tmp/go-lbiwebp
|
||||
COPY Makefile /tmp/go-libwebp/Makefile
|
||||
|
||||
|
|
|
|||
16
Makefile
16
Makefile
|
|
@ -1,5 +1,6 @@
|
|||
BUILDDIR=/tmp
|
||||
WORKDIR=github.com/harukasan/go-libwebp
|
||||
CURDIR=$(shell pwd)
|
||||
|
||||
all: test
|
||||
|
||||
|
|
@ -17,7 +18,20 @@ libwebp:
|
|||
&& make install \
|
||||
)
|
||||
|
||||
docker-test:
|
||||
docker run -v ${CURDIR}:/go/src/github.com/harukasan/go-libwebp -it go-libwebp
|
||||
|
||||
docker-sh:
|
||||
docker run -v ${CURDIR}:/go/src/github.com/harukasan/go-libwebp -it go-libwebp sh
|
||||
|
||||
docker-build:
|
||||
docker build -t go-libwebp .
|
||||
|
||||
|
||||
.PHONY: \
|
||||
all \
|
||||
test
|
||||
test \
|
||||
docker-test \
|
||||
docker-sh \
|
||||
docker-build
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue