mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-04 18:44:25 -08:00
dockerfile updates, still WIP
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
# WIP dev dockerfile
|
||||
|
||||
FROM rockylinux:9
|
||||
|
||||
# Install Go
|
||||
RUN curl https://go.dev/dl/go1.18.5.linux-amd64.tar.gz \
|
||||
-O go.tar.gz
|
||||
RUN tar -xvf go.tar.gz
|
||||
RUN rm -f go.tar.gz
|
||||
RUN mv go /usr/local/bin
|
||||
COPY . .
|
||||
|
||||
# Install Ignite
|
||||
# Grab dependencies
|
||||
RUN yum update -y && yum install -y findutils
|
||||
|
||||
# Install Go
|
||||
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
|
||||
RUN rm -f go.tar.gz
|
||||
RUN mv go /usr/local/
|
||||
|
||||
# Install Ignite CLI
|
||||
RUN yes | curl https://get.ignite.com/cli! | bash
|
||||
|
||||
ENV PATH=$PATH:/usr/local/go/bin
|
||||
|
||||
RUN go mod tidy
|
||||
|
||||
# CMD ["ignite", "chain", "serve"]
|
||||
# Runs continuously
|
||||
CMD ["ignite", "chain", "serve"]
|
||||
|
||||
# Can attach to container using VSCode or command line
|
||||
|
||||
Reference in New Issue
Block a user