You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
812 B
28 lines
812 B
FROM alpine as build
|
|
|
|
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
|
|
RUN apk --no-cache add autoconf automake gcc git make musl-dev sdl2-dev sdl2_mixer-dev sdl2_net-dev
|
|
|
|
WORKDIR /src/
|
|
|
|
ARG VERSION=5.11.1
|
|
|
|
RUN git clone -b crispy-doom-${VERSION} --depth 1 https://github.com/fabiangreffrath/crispy-doom
|
|
RUN cd crispy-doom && ./autogen.sh && make
|
|
|
|
FROM alpine
|
|
|
|
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
|
|
RUN apk --no-cache add sdl2 sdl2_mixer sdl2_net tini
|
|
|
|
EXPOSE 2342/udp
|
|
|
|
COPY --from=build /src/crispy-doom/src/crispy-server /usr/local/bin/crispy-server
|
|
|
|
RUN adduser -D doom
|
|
USER doom
|
|
|
|
COPY ./entrypoint.sh .
|
|
|
|
# Using tini here because the crispy-doom process does not respect signals
|
|
ENTRYPOINT ["tini", "--", "/entrypoint.sh"]
|
|
|