Initial commit
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM golang:latest as builder
|
||||
WORKDIR /go/src/git.dm1sh.ru/dm1sh/any2pdf/
|
||||
COPY *.go go.mod ./
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app .
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache --purge add imagemagick libreoffice ttf-dejavu ttf-opensans msttcorefonts-installer ttf-freefont ttf-liberation ttf-droid ttf-inconsolata ttf-font-awesome ttf-mononoki ttf-hack && rm -rf /usr/share/icons && rm -rf /usr/lib/libreoffice/share/gallery && update-ms-fonts && fc-cache -fv
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /go/src/git.dm1sh.ru/dm1sh/any2pdf/app ./
|
||||
COPY index.html ./
|
||||
ENV PORT=8080
|
||||
CMD ["./app"]
|
Reference in New Issue
Block a user