-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.ubuntu22
More file actions
41 lines (33 loc) · 1.05 KB
/
Dockerfile.ubuntu22
File metadata and controls
41 lines (33 loc) · 1.05 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
# Ubuntu 22.04 build environment for Mako
#
# Default: Uses native platform (ARM64 on Mac M4, AMD64 on Windows/Linux x86_64)
# To force AMD64: docker build --build-arg FORCE_AMD64=true -f Dockerfile.ubuntu22 -t mako-build:ubuntu22 .
#
# FROM --platform=linux/amd64 ubuntu:22.04
FROM ubuntu:22.04
# Avoid interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Set working directory
WORKDIR /workspace
# Install basic dependencies
RUN apt-get update && apt-get install -y \
sudo \
curl \
wget \
git \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
# Copy and run apt_packages.sh to install all dependencies
COPY apt_packages.sh /tmp/apt_packages.sh
RUN bash /tmp/apt_packages.sh && rm /tmp/apt_packages.sh
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Pre-create build directory
RUN mkdir -p /workspace/build
# Set up environment for build
ENV MODE=perf
ENV ENABLE_BORROW_CHECKING=OFF
# Default command
CMD ["/bin/bash"]