-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
44 lines (28 loc) · 1017 Bytes
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM golang:latest as colour-agg-builder
WORKDIR /app
COPY ./tools/colour-agg/go.mod .
RUN go mod download
COPY ./tools/colour-agg/*.go ./
RUN go build -o main .
############################################
FROM golang:latest as builder-builder
WORKDIR /app
COPY ./tools/builder/go.mod .
COPY ./tools/builder/go.sum .
RUN go mod download
COPY ./tools/builder/*.go ./
COPY ./tools/builder/assets/*.go ./assets/
COPY ./tools/builder/gbacolour/*.go ./gbacolour/
RUN go build -o main .
##################################################
#Devkit pro image is out of date also deabain is fucked here for some reason
FROM devkitpro/devkitarm:latest as GBA-builder
#Copy colour agg tool
COPY --from=colour-agg-builder /app/main /bin/colour-agg.exe
#Copy builder
COPY --from=builder-builder /app/main /bin/builder
RUN chmod +x /bin/builder
RUN mkdir /app
WORKDIR /app
ENTRYPOINT [ "builder" ]
CMD [ "/app/build.toml", "/app/assets", "/app/source/assets", "build" ]