From f26bba33487703657465d498eb3f564c52aee4f0 Mon Sep 17 00:00:00 2001 From: Eslam-Nawara Date: Tue, 24 Oct 2023 16:35:54 +0300 Subject: [PATCH] fix dockerfile --- user-contracts-mon/Dockerfile | 2 ++ user-contracts-mon/README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/user-contracts-mon/Dockerfile b/user-contracts-mon/Dockerfile index e8622b88a..f91d6119e 100644 --- a/user-contracts-mon/Dockerfile +++ b/user-contracts-mon/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /contracts-mon-bot COPY . . +WORKDIR /contracts-mon-bot/user-contracts-mon + RUN go mod tidy RUN go build -o contractsmon main.go diff --git a/user-contracts-mon/README.md b/user-contracts-mon/README.md index d604e1231..8cfe5bff7 100644 --- a/user-contracts-mon/README.md +++ b/user-contracts-mon/README.md @@ -48,7 +48,7 @@ Ensure that you have installed: - Using Docker ```bash - docker build -t contract-mon . + docker build -t contract-mon -f Dockerfile ../ docker run -it contract-mon ```