-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
53 lines (43 loc) · 1.13 KB
/
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
45
46
47
48
49
50
51
52
53
FROM python:3.8-slim-buster AS build-stage
WORKDIR /app
RUN apt-get update -yq \
&& apt-get install -yq build-essential wget
RUN python -m pip install --upgrade pip
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
WORKDIR /app/asar
RUN wget https://github.com/RPGHacker/asar/archive/v1.81.tar.gz \
&& tar xfz v1.81.tar.gz \
&& cd asar-1.81 \
&& cmake src \
&& make \
&& mkdir -p /app/tools \
&& cp asar/asar-standalone /app/tools/asar
RUN mkdir -p /app/build \
&& mkdir -p /app/enemies \
&& mkdir -p /app/layout \
&& mkdir -p /app/names \
&& mkdir -p /app/resources \
&& mkdir -p /app/src
COPY build.sh /app/build.sh
COPY build_dev.sh /app/build_dev.sh
COPY build_PAL.sh /app/build_PAL.sh
ARG now
WORKDIR /app
RUN rm -rf build
RUN mkdir -p build
RUN rm -rf enemies
COPY enemies/ enemies/
RUN rm -rf layout
COPY layout/ layout/
RUN rm -rf names
COPY names/ names/
RUN rm -rf resources
COPY resources/ resources/
RUN rm -rf src
COPY src/ src/
RUN ./build_dev.sh
RUN ./build_PAL.sh
RUN ./build.sh
FROM scratch AS export-stage
COPY --from=build-stage /app/build .