Initial commit

This commit is contained in:
2022-09-24 17:35:33 +03:00
parent 2a4dcd5ab5
commit cd5b65a886
7 changed files with 251 additions and 0 deletions

12
Dockerfile Normal file
View 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"]