mirror of
https://github.com/lixiaofei123/pdftoolbox.git
synced 2026-08-12 23:31:44 +08:00
init
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
FROM golang AS build
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
ENV GOPROXY https://goproxy.io,direct
|
||||
ENV CGO_ENABLED=0
|
||||
RUN go build -o pdftoolbox
|
||||
|
||||
FROM ubuntu
|
||||
RUN apt-get -y update && rm -rf /var/lib/apt/lists/*
|
||||
RUN cp gs /usr/bin/gs
|
||||
RUN mkdir -p /opt/pdftoolbox
|
||||
RUN mkdir -p /opt/pdftoolbox/input
|
||||
RUN mkdir -p /opt/pdftoolbox/output
|
||||
COPY --from=build /build/pdftoolbox /opt/pdftoolbox/pdftoolbox
|
||||
COPY static /opt/pdftoolbox/static
|
||||
EXPOSE 8082
|
||||
WORKDIR /opt/pdftoolbox/
|
||||
ENTRYPOINT ["./pdftoolbox"]
|
||||
Reference in New Issue
Block a user