dockerfile updates, still WIP
parent
cf3b28217b
commit
c330f4fb77
|
@ -1,17 +1,25 @@
|
||||||
# WIP dev dockerfile
|
|
||||||
|
|
||||||
FROM rockylinux:9
|
FROM rockylinux:9
|
||||||
|
|
||||||
# Install Go
|
COPY . .
|
||||||
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
|
|
||||||
|
|
||||||
# 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
|
RUN yes | curl https://get.ignite.com/cli! | bash
|
||||||
|
|
||||||
|
ENV PATH=$PATH:/usr/local/go/bin
|
||||||
|
|
||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
|
|
||||||
# CMD ["ignite", "chain", "serve"]
|
# Runs continuously
|
||||||
|
CMD ["ignite", "chain", "serve"]
|
||||||
|
|
||||||
|
# Can attach to container using VSCode or command line
|
||||||
|
|
Loading…
Reference in New Issue