Skip to content

Commit

Permalink
Merge pull request #1150 from mesg-foundation/fix/core-to-engine-in-d…
Browse files Browse the repository at this point in the history
…ocker

Use engine in dev dockerfile
  • Loading branch information
antho1404 authored Jul 1, 2019
2 parents 37422d8 + 19c6036 commit c407680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ RUN go mod download
COPY . .
ARG version
ENV version=${version}
RUN ./scripts/build-core.sh
RUN ./scripts/build-engine.sh

FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates=20180409 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /project/mesg-core .
CMD ["./mesg-core"]
COPY --from=build /project/engine .
CMD ["./engine"]
2 changes: 1 addition & 1 deletion scripts/build-engine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ for s in systemservices/* ; do
fi
done

go build -o mesg-engine -ldflags="$LDFLAGS" core/main.go
go build -o engine -ldflags="$LDFLAGS" core/main.go

0 comments on commit c407680

Please sign in to comment.