-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 894 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
34
35
36
37
38
39
40
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary packages
RUN apt-get update && \
apt-get install -y \
build-essential \
clang-format \
python3 \
wget \
wine && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y wine32
# Copy from devkitPro image
COPY --from=devkitpro/devkitppc:20210510 /opt/devkitpro /opt/devkitpro
# Setup environment for Wine
ENV WINEPREFIX=/tmp/wine
RUN useradd --create-home user && \
mkdir -p "${WINEPREFIX}" && \
chown user:user "${WINEPREFIX}"
# Setup working directory
RUN mkdir /wwdcmp
WORKDIR /wwdcmp
COPY . /wwdcmp
# Use non-root user
USER user
# Environment variables for toolchain
ENV DEVKITPRO=/opt/devkitpro
ENV DEVKITPPC=/opt/devkitpro/devkitPPC
ENV MWCIncludes="C:\\"
ENV MWLibraries="C:\\"
ENV MWLibraryFiles="C:\\"
ENV Path=/wwdcmp/tools/mwcc_compiler/2.0/