From 86492ecc48b32a5e69fd58893d35cc18478faba9 Mon Sep 17 00:00:00 2001 From: Pisit Wajanasara Date: Tue, 2 Jan 2024 14:30:19 -0800 Subject: [PATCH] Update Dockerfile and fix docker build failed --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f34c46d..a20ec174 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ -FROM golang:latest +FROM golang:1.18 RUN mkdir /trezord-go WORKDIR /trezord-go -COPY ./scripts/run_in_docker.sh /trezord-go +COPY . /trezord-go RUN apt-get update RUN apt-get install -y redir -RUN go get github.com/trezor/trezord-go -RUN go build github.com/trezor/trezord-go +RUN go build . -ENTRYPOINT '/trezord-go/run_in_docker.sh' +ENTRYPOINT '/trezord-go/scripts/run_in_docker.sh' EXPOSE 11325