Skip to content

Added Dockerfile for DePIN server#14

Open
Varsha-Pothukanama wants to merge 2 commits into
devnetfrom
varsha/depin-docker
Open

Added Dockerfile for DePIN server#14
Varsha-Pothukanama wants to merge 2 commits into
devnetfrom
varsha/depin-docker

Conversation

@Varsha-Pothukanama

Copy link
Copy Markdown

Added the Dockerfile to Dockerize the DePIN server.

Comment thread Dockerfile Outdated
RUN go mod download

# Copy the entire project into the container
COPY . .

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be above RUN go mod download

Comment thread Dockerfile Outdated
WORKDIR /app

# Copy go.mod and go.sum first to leverage Docker cache
COPY go.mod go.sum ./

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required considering the COPY . . directive is going to send go.mod and go.sum files inside the Docker Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants