2022-04-20 12:43:54 +02:00
|
|
|
FROM golang:latest
|
|
|
|
|
|
|
|
RUN apt-get update -qq && apt-get install -y netcat
|
|
|
|
RUN apt-get install -y -q libsm6 libcups2 libcairo2 libdbus-1-3 libxinerama1
|
2022-04-26 11:57:18 +02:00
|
|
|
RUN apt-get install -y texlive-latex-extra texlive-fonts-extra poppler-utils
|
2022-04-20 12:43:54 +02:00
|
|
|
|
|
|
|
## Download pandoc
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
RUN wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb
|
|
|
|
|
|
|
|
## Install pandoc
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
RUN dpkg -i ./pandoc-2.18-1-amd64.deb
|
|
|
|
|
|
|
|
ENV PATH=$PATH:/src/alba/backend/
|
|
|
|
RUN mkdir -p /src/alba/backend/
|
|
|
|
ADD . /src/alba/backend/
|
|
|
|
|
|
|
|
WORKDIR /src/alba/backend/
|
|
|
|
|
|
|
|
RUN go build -o alba-server *.go
|
|
|
|
ENTRYPOINT ["/src/alba/backend/alba-server"]
|
|
|
|
|
|
|
|
EXPOSE 3000
|