Skip to content

Commit f7974c2

Browse files
committed
fix: use golang image + cd into dir
1 parent 734c655 commit f7974c2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DEPENDENCIES
22
# fabric-shim needs node ^18.0.0
3-
FROM node:18.20.1-bullseye AS build
3+
FROM golang:1.22.2-bullseye AS build
44

55
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
66
export DEBIAN_FRONTEND=noninteractive \
@@ -14,10 +14,11 @@ COPY --chmod=0777 ./ .
1414

1515
RUN git config --global user.email "hello@settlemint.com" && \
1616
git config --global user.name "SettleMint" && \
17-
pushd ./src && \
18-
go mod vendor && \
19-
popd && \
20-
rm -Rf Dockerfile .dockerignore .github
17+
rm -Rf Dockerfile .dockerignore .github
18+
19+
# Install go dependencies
20+
WORKDIR /usecase/src
21+
RUN go mod vendor
2122

2223
USER root
2324

0 commit comments

Comments
 (0)