Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yunimoo committed Jul 14, 2024
1 parent 1bc94f1 commit cac1330
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM --platform=$BUILDPLATFORM docker.io/library/debian:latest AS builder
FROM docker.io/library/debian:latest AS builder

# First - build
ARG GO_VERSION=1.22.5

ARG BUILDPLATFORM
ARG TARGETPLATFORM

RUN apt update && apt install -y curl git
RUN curl -LO https://go.dev/dl/go1.22.5.linux-amd64.tar.gz
Expand All @@ -21,7 +21,7 @@ RUN sed -i 's|./config.json|/data/config.json|g' config/config.go
RUN sed -i 's|./config.json|/data/config.json|g' config/runtime.go

RUN export PATH=$PATH:/usr/local/go/bin && \
GOARCH=$(echo "${BUILDPLATFORM}" | sed 's/linux\/linux\///') && \
GOARCH=$(echo "${TARGETPLATFORM}" | sed 's/linux\/linux\///') && \
go build

# Not currently possible - elichika uses too much ram
Expand All @@ -31,7 +31,9 @@ RUN export PATH=$PATH:/usr/local/go/bin && \

## Second - sort stuff idk

FROM docker.io/library/debian:bookworm-slim
FROM --platform=$TARGETPLATFORM docker.io/library/debian:bookworm-slim

ARG TARGETPLATFORM

RUN mkdir -p /root/elichika/
COPY --from=builder /elichika/elichika /root/elichika/elichika
Expand Down

0 comments on commit cac1330

Please sign in to comment.