gpu-compute-chain/dev.Dockerfile

26 lines
500 B
Plaintext
Raw Normal View History

2022-09-04 16:35:15 -07:00
FROM rockylinux:9
2022-09-05 14:45:53 -07:00
COPY . .
# Grab dependencies
RUN yum update -y && yum install -y findutils
2022-09-04 16:35:15 -07:00
# Install Go
2022-09-05 14:45:53 -07:00
RUN curl https://go.dev/dl/go1.18.5.linux-amd64.tar.gz -Lso go.tar.gz
RUN mkdir ./go
RUN tar -xf go.tar.gz -C ./go
2022-09-04 16:35:15 -07:00
RUN rm -f go.tar.gz
2022-09-05 14:45:53 -07:00
RUN mv go /usr/local/
2022-09-04 16:35:15 -07:00
2022-09-05 14:45:53 -07:00
# Install Ignite CLI
2022-09-04 16:35:15 -07:00
RUN yes | curl https://get.ignite.com/cli! | bash
2022-09-05 14:45:53 -07:00
ENV PATH=$PATH:/usr/local/go/bin
2022-09-04 16:35:15 -07:00
RUN go mod tidy
2022-09-05 14:45:53 -07:00
# Runs continuously
CMD ["ignite", "chain", "serve"]
# Can attach to container using VSCode or command line