dockerfile updates, still WIP

master
michael 2022-09-05 21:45:53 +00:00
parent cf3b28217b
commit c330f4fb77
1 changed files with 18 additions and 10 deletions

View File

@ -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