Skip to content

Commit

Permalink
dynamic test
Browse files Browse the repository at this point in the history
  • Loading branch information
yunimoo committed Jul 14, 2024
1 parent c1b82e1 commit 615f002
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ ARG GO_VERSION=1.22.5

ARG TARGETARCH TARGETOS

RUN apt update && apt install -y curl git
ENV CGO_ENABLED=1

RUN apt update && apt install -y curl git gcc
RUN curl -LO https://go.dev/dl/go1.22.5.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz

Expand All @@ -22,7 +24,7 @@ RUN sed -i 's|./config.json|/data/config.json|g' config/runtime.go

RUN export PATH=$PATH:/usr/local/go/bin && \
GOOS=$TARGETOS GOARCH=$TARGETARCH \
go build
go build -buildmode=c-shared -o elichikautils.so

# Not currently possible - elichika uses too much ram
#RUN rm -rf assets/ && git clone https://github.com/arina999999997/harasho assets --depth 1
Expand All @@ -37,6 +39,7 @@ ARG TARGETPLATFORM

RUN mkdir -p /root/elichika/
COPY --from=builder /elichika/elichika /root/elichika/elichika
COPY --from=builder /elichika/elichikautils.so /root/elichika/elichikautils.so

RUN mkdir -p /data/

Expand Down

0 comments on commit 615f002

Please sign in to comment.