Repository navigation
Expand file tree
/
Copy pathDockerfile.01-base
More file actions
71 lines (66 loc) · 2.18 KB
/
Copy pathDockerfile.01-base
File metadata and controls
71 lines (66 loc) · 2.18 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# syntax=docker/dockerfile:1.6
#
# Phase 01 — Alpine base + the apk packages every later phase needs to
# build dosemu2's toolchain and runtime deps from source.
#
# Output image: dosemu2-builder:01-base
#
# This chain adapts dosemu2 upstream's own Dockerfile.alpine
# (https://github.com/dosemu2/dosemu2/blob/devel/Dockerfile.alpine),
# written by Stas Sergeev (stsp) — see
# https://github.com/theimpossibleastronaut/dosemu2-container/issues/10.
# Alpine has no AUR-equivalent binary repo for the DJGPP-style
# cross-toolchain dosemu2 needs, so every phase here builds its piece
# from source instead of installing a prebuilt package. Splitting the
# single upstream Dockerfile into phases means a failure partway
# through doesn't force a full rebuild from scratch.
#
# Stable layer. Rarely needs rebuilding.
FROM alpine:3.21
RUN apk add --no-cache \
build-base \
meson \
git \
autoconf \
bash \
flex \
bison \
texinfo \
nasm \
pkgconf \
elfutils-dev \
automake \
ctags \
jansson-dev \
libtool \
glib-dev \
json-c-dev \
libslirp-dev \
gawk \
libseccomp-dev \
slang-dev \
shadow \
util-linux \
\
`# GUI build deps, not in upstream's headless Dockerfile.alpine.` \
`# We build dosemu2 with GUI support and produce both a full` \
`# (:latest) and headless (:latest-headless) runtime from it.` \
alsa-lib-dev \
fluidsynth-dev \
ladspa \
gpm-dev \
libsamplerate-dev \
vde2-dev \
libx11-dev \
libxext-dev
# libb64-dev isn't in Alpine's stable repos yet; upstream's
# Dockerfile.alpine pulls it from edge/testing too.
RUN apk add --no-cache libb64-dev \
--repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
# sdl3-dev is edge/community-only as of Alpine 3.21. dosemu2's
# configure requires SDL3 specifically; the runtime stages in
# Dockerfile.04-build pull the matching non-dev sdl3 package the
# same way.
RUN apk add --no-cache sdl3-dev \
--repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
WORKDIR /root