should work with CI now, untested

This commit is contained in:
2020-09-20 15:45:35 -07:00
parent 80465e3f1f
commit 905082c769
3 changed files with 38 additions and 4 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
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"]