File: Dockerfile

package info (click to toggle)
freespace2 24.0.2%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 43,188 kB
  • sloc: cpp: 583,107; ansic: 21,729; python: 1,174; sh: 464; makefile: 248; xml: 181
file content (33 lines) | stat: -rw-r--r-- 949 bytes parent folder | download
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 alpine:latest AS builder

ARG build_type

RUN apk add --no-cache cmake gcc g++ ninja openal-soft-dev \
	freetype-dev sdl2-dev linux-headers unzip

COPY docker/build.sh /build.sh

ADD . /code

WORKDIR /code
RUN /build.sh "${build_type}"

ADD https://github.com/scp-fs2open/fs2open_webui/archive/master.zip /build/webui.zip
RUN unzip /build/webui.zip -d /build/fso-webui && cp -r /build/fso-webui/fs2open_webui-master/. /webui

FROM alpine:latest

RUN apk add --no-cache openal-soft freetype sdl2 libstdc++

ENV XDG_DATA_HOME=/fso-config
COPY docker/standalone/fs2_open.ini /fso-config/HardLightProductions/FreeSpaceOpen/
COPY docker/standalone/multi.cfg /fso-config/HardLightProductions/FreeSpaceOpen/data/

COPY --from=builder /install /fso-bin
COPY --from=builder /webui /fso-webui

EXPOSE 8080 7808/udp

VOLUME ["/fso"]
WORKDIR /fso
ENTRYPOINT ["/fso-bin/AppRun", "-nosound", "-standalone", "-noninteractive", "-port", "7808", "-stdout_log"]