FROM node:10-alpine as builder
MAINTAINER [email protected]
RUN apk add --no-cache git python make openssl tar gcc
RUN mkdir /api && cd /api && \
git clone --depth=1 https://github.com/xian-crazy/yapi.git vendors && \
cd /api/vendors && \
npm install && \
cp /api/vendors/config_example.json /api/config.json && \
./node_modules/ykit/bin/ykit pack -m
FROM node:10-alpine
MAINTAINER [email protected]
ENV TZ="Asia/Shanghai"
COPY --from=builder /api/vendors /api/vendors
ENTRYPOINT ["node"]
Content type
Image
Digest
Size
150.1 MB
Last updated
over 6 years ago
docker pull smartwang/crazy-yapi:b84db85