mirror of
https://github.com/JuLi0n21/thumbnailservice.git
synced 2026-04-19 16:00:07 +00:00
20 lines
314 B
Docker
20 lines
314 B
Docker
FROM golang:1.24.2
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
imagemagick \
|
|
ffmpeg \
|
|
poppler-utils \
|
|
ocrmypdf \
|
|
qpdf \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 50051
|
|
|
|
RUN go mod tidy && go build -o thumbnail-service
|
|
|
|
CMD ["./thumbnail-service"] |