2021-03-18 23:35:08 +01:00
|
|
|
FROM golang:alpine AS build
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
2021-03-19 20:33:55 +01:00
|
|
|
RUN GOOS=linux go build -o bdm src/bdm.go
|
2021-03-18 23:35:08 +01:00
|
|
|
|
|
|
|
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"]
|