-
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.
merge: branch '3624-add-cors-support' into 'main'
Added CORS support [#3624] Closes #3624 See merge request accumulatenetwork/accumulate!1091
- Loading branch information
Showing
3 changed files
with
115 additions
and
2 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", "--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