formless/Dockerfile
sneak e68027843d
All checks were successful
continuous-integration/drone/push Build is passing
might go faster now, who knows
2020-09-20 16:11:00 -07:00

28 lines
466 B
Docker

## build image:
FROM golang:1.15 as builder
RUN mkdir -p /go/src/git.eeqj.de/sneak/formless
WORKDIR /go/src/git.eeqj.de/sneak/formless
COPY go.mod .
COPY go.sum .
RUN go mod download
ADD . /go/src/git.eeqj.de/sneak/formless/
RUN make build
## output image:
FROM scratch
COPY --from=builder /go/src/git.eeqj.de/sneak/formless/formless /app/formless
COPY --from=builder /go /go.archive
WORKDIR /app
ENV PORT 8080
ENV DBURL none
EXPOSE 8080
CMD ["./formless"]