buch_des_monats/Dockerfile
2021-07-01 23:33:53 +02:00

13 lines
266 B
Docker

FROM golang:alpine AS build
COPY . /app
WORKDIR /app
RUN GOOS=linux go build -o bdm src/bdm.go
FROM alpine
WORKDIR /app
COPY ./static /app/static/
COPY ./templates /app/templates/
RUN mkdir /app/covers/
COPY --from=build /app/bdm /app/bdm
EXPOSE 9783
CMD ["./bdm"]