-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 838 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (24 loc) · 838 Bytes
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
# syntax=docker/dockerfile:1
# SPDX-License-Identifier: MIT OR LicenseRef-Moria-Angband
FROM emscripten/emsdk:5.0.7@sha256:4e332f7343b6f66320bf72f7ecc01a3d9f3866721a13b0e5c7b96505d6ab148a
ARG CI=
RUN <<EOF
if [ -z "$CI" ]; then
sed -Ei 's!http://(archive).ubuntu.com/ubuntu!https://ftp.udx.icscoe.jp/Linux/ubuntu!g' /etc/apt/sources.list.d/ubuntu.sources
else
sed -Ei 's!http://(archive).ubuntu.com/ubuntu!http://azure.archive.ubuntu.com/ubuntu!g' /etc/apt/sources.list.d/ubuntu.sources
fi
EOF
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
autoconf \
automake \
ccache \
libtool \
nkf \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
COPY --chmod=0755 ./docker/run.sh /run.sh
WORKDIR /work
VOLUME /work
ENTRYPOINT ["/run.sh"]