Skip to content

Commit

Permalink
fix: use golang image + cd into dir
Browse files Browse the repository at this point in the history
  • Loading branch information
daanporon committed Apr 24, 2024
1 parent 734c655 commit f7974c2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DEPENDENCIES
# fabric-shim needs node ^18.0.0
FROM node:18.20.1-bullseye AS build
FROM golang:1.22.2-bullseye AS build

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

RUN git config --global user.email "[email protected]" && \
git config --global user.name "SettleMint" && \
pushd ./src && \
go mod vendor && \
popd && \
rm -Rf Dockerfile .dockerignore .github
rm -Rf Dockerfile .dockerignore .github

# Install go dependencies
WORKDIR /usecase/src
RUN go mod vendor

USER root

Expand Down

0 comments on commit f7974c2

Please sign in to comment.