formless/Dockerfile

22 lines
268 B
Docker
Raw Normal View History

2020-09-20 22:45:35 +00:00
FROM golang:1.15 as builder
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN make build
FROM scratch
COPY --from=builder /build/formless /app/formless
COPY --from=builder /go /goarchive
WORKDIR /app
ENV PORT 8080
ENV DBURL none
EXPOSE 8080
CMD ["./formless"]