-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
33 lines (31 loc) · 816 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
FROM ubuntu:22.04 AS builder
ARG BUILDOPTS
ENV BUILDOPTS=${BUILDOPTS}
WORKDIR /amcduke32
COPY . /amcduke32/
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
build-essential \
git \
nasm \
libgl1-mesa-dev \
libglu1-mesa-dev \
libsdl1.2-dev \
libsdl-mixer1.2-dev \
libsdl2-dev \
libsdl2-mixer-dev \
flac \
libflac-dev \
libvorbis-dev \
libvpx-dev \
libgtk2.0-dev \
freepats \
&& make RELEASE=0 ${BUILDOPTS} \
&& mv amcsquad amcsquad.debug \
&& mv mapster32 mapster32.debug \
&& make clean \
&& make ${BUILDOPTS}
FROM scratch AS distrib
COPY --from=builder /amcduke32/amcsquad /amcduke32/mapster32 /
COPY --from=builder /amcduke32/amcsquad.debug /amcduke32/mapster32.debug /
COPY --from=builder /amcduke32/package/common/* /