1
0
mirror of https://github.com/osmarks/random-stuff synced 2024-12-28 02:50:33 +00:00
random-stuff/it-was-inevitable/Dockerfile

18 lines
427 B
Docker
Raw Normal View History

2020-08-12 19:31:12 +00:00
FROM golang:1.10.1 as builder
COPY *.go /go/src/github.com/BenLubar/it_was_inevitable/
WORKDIR /go/src/github.com/BenLubar/it_was_inevitable
RUN go get -d
RUN CGO_ENABLED=0 go build -a -o /it_was_inevitable
FROM benlubar/dwarffortress:df-ai-0.44.12-r1-update1
COPY --from=builder /it_was_inevitable /usr/local/bin/it_was_inevitable
RUN sed -i /df_linux/dfhack -e "s/ setarch / exec setarch /"
CMD ["it_was_inevitable"]