alba/backend/Dockerfile

26 lines
613 B
Docker

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
RUN apt-get install -y texlive-latex-extra poppler-utils
## 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