Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Nov 29, 2023
1 parent 5897eff commit 9398231
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ WORKDIR /app

RUN go mod download

COPY ./bindings /app/bindings
COPY ./core /app/core
COPY ./cmd /app/cmd
COPY ./Makefile /app/Makefile
COPY ./bot.toml /app/bot.toml
COPY ./bot.testnet.toml /app/bot.testnet.toml
COPY ./bot.mainnet.toml /app/bot.mainnet.toml

WORKDIR /app/

Expand All @@ -21,8 +23,7 @@ RUN make build-go
FROM alpine:3.18

COPY --from=builder /app/bot /usr/local/bin
COPY --from=builder /app/bot.toml /app/bot.toml

WORKDIR /app

CMD ["bot", "run", "--config", "/app/bot.toml"]
CMD ["bot", "run", "--config", "/app/bot.testnet.toml"]

0 comments on commit 9398231

Please sign in to comment.