1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 11:46:16 +00:00
mycorrhiza/Dockerfile
Alex Gu 8bd00c7f37
Add Dockerfile (#63)
Co-authored-by: handlerug <umar@handlerug.me>
2021-06-09 21:20:46 +07:00

19 lines
290 B
Docker

FROM golang:alpine as build
WORKDIR src
COPY . .
ENV CGO_ENABLED=0
RUN go generate
RUN go build -o /out/mycorrhiza .
FROM alpine/git as app
EXPOSE 1737
WORKDIR /
RUN mkdir wiki
COPY --from=build /out/mycorrhiza /usr/bin
WORKDIR /wiki
VOLUME /wiki
ENTRYPOINT ["mycorrhiza"]
CMD ["/wiki"]