1
0
mirror of https://github.com/osmarks/random-stuff synced 2024-11-17 09:24:49 +00:00
random-stuff/it-was-inevitable/Dockerfile
2020-08-12 20:31:12 +01:00

18 lines
427 B
Docker
Executable File

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"]