Last active
July 7, 2025 14:53
-
-
Save brianjo/cca5bff343f9d7b0dbe33448b987bdc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Dockerfile will create an image | |
# with the Buck2 repo on Ubuntu. It will | |
# build and install Buck2 on the image | |
# and it will add the buck2 binary | |
# to the image path. | |
# | |
# To use this, copy the Dockerfile | |
# to a folder, then cd to the | |
# folder and run: | |
# | |
# docker build -t "buck2:latest" . | |
# | |
# Then to get a command line: | |
# | |
# docker run -it buck2 /bin/bash | |
# | |
# You should be able to build the projects | |
# in the buck2/examples folder | |
FROM ubuntu:latest | |
MAINTAINER Brian Johnson | |
RUN apt-get -y update | |
RUN apt-get -y upgrade | |
RUN apt-get install -y \ | |
build-essential \ | |
curl \ | |
vim \ | |
git | |
RUN apt-get update | |
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | |
ENV PATH="/root/.cargo/bin:${PATH}" | |
WORKDIR "/root" | |
RUN git clone https://github.com/facebookincubator/buck2.git | |
WORKDIR "/root/buck2" | |
RUN cargo build --bin=buck2 --release | |
RUN cp target/release/buck2 /usr/bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment