7 Star 32 Fork 11

Gitee 极速下载/pdfcpu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/pdfcpu/pdfcpu
克隆/下载
Dockerfile 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
# Dockerfile References: https://docs.docker.com/engine/reference/builder/
#
# Usage:
#
# docker build -t pdfcpu .
#
# Simple one off container:
# docker run pdfcpu
#
# One off container with dir binding:
# docker run -v $(pwd):/data -it --rm pdfcpu pdfcpu val test.pdf
#
# Create & run reusable container with dir binding:
# docker run --name pdfcpu -v $(pwd):/data -it pdfcpu /bin/sh
# /data # ... // run pdfcpu commands against your data
# /data # exit // exit container
#
# docker start -i pdfcpu // restart container with dir binding
# /data # ... // run pdfcpu commands against your data
# /data # exit // exit container
# Start from the latest golang base image
FROM golang:latest as builder
# install
RUN go install github.com/pdfcpu/pdfcpu/cmd/pdfcpu@latest
######## Start a new stage from scratch #######
FROM alpine:latest
RUN apk --no-cache add ca-certificates gcompat
WORKDIR /root
# Copy the pre-built binary file from the previous stage
COPY --from=builder /go/bin ./
# Export path of executable
ENV PATH="${PATH}:/root"
WORKDIR /data
# Command to run executable
CMD pdfcpu && echo && pdfcpu version -v
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/pdfcpu.git
git@gitee.com:mirrors/pdfcpu.git
mirrors
pdfcpu
pdfcpu
master

搜索帮助