-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23935f5
commit 32a06db
Showing
3 changed files
with
66 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM golang:1.23 as build | ||
|
||
ARG GIT_DESCRIBE | ||
ARG GIT_COMMIT | ||
|
||
# Build | ||
WORKDIR /root | ||
COPY . . | ||
ENV CGO_ENABLED 0 | ||
RUN make sim GIT_DESCRIBE=$GIT_DESCRIBE GIT_COMMIT=$GIT_COMMIT | ||
RUN go install github.com/go-delve/delve/cmd/dlv@latest | ||
RUN mkdir /data | ||
|
||
FROM alpine:3 | ||
|
||
# Install tools | ||
RUN apk add --no-cache bash jq curl nano | ||
|
||
# Copy binaries | ||
COPY --from=build /root/simulator /go/bin/dlv /bin/ | ||
|
||
EXPOSE 26660 | ||
|
||
ENTRYPOINT ["simulator", "-b=1", "-v=1", "-s=100ms", "--database=/data/accumulate.db", "--globals={\"executorVersion\": \"v2vandenberg\"}"] | ||
CMD ["-a=0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters