Skip to content

Commit

Permalink
Fix: Fixes on dockerfile refs & size optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
emailnjv committed Jun 14, 2024
1 parent 0b535d2 commit 714e381
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 5 additions & 5 deletions etc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Start from the latest Rust base image
FROM rust:latest as builder
FROM rust:latest
FROM rust:bullseye as builder
#FROM rust:latest

SHELL ["/bin/bash", "-c"]

Expand Down Expand Up @@ -52,10 +52,10 @@ COPY . .
RUN cargo build --release --bin app
#
## Our second stage will use Debian
#FROM debian:buster-slim
FROM debian:bullseye-slim
#
## Copy the build artifact from the builder stage and set the startup command
#COPY --from=builder /opt/alys/target/release/app /usr/local/bin/alys
COPY --from=builder /opt/alys/target/release/app /bin/alys
#
## Set the startup command to run your binary
#CMD ["alys --dev"]
CMD ["alys --dev"]
13 changes: 8 additions & 5 deletions etc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,17 @@ services:
alys:
container_name: alys
restart: unless-stopped
# image: ghcr.io/anduroproject/alys:main
# build:
# context: ../
# dockerfile: Dockerfile
image: ghcr.io/anduroproject/alys:dev
# image: alys:latest
volumes:
- ./data/alys/db/:/lib/alys/data/db
- ./data/alys/wallet/:/lib/alys/data/wallet
environment:
- HOST_SERVICE_URL=http://host.docker.internal:18443
# - HOST_SERVICE_URL=http://host.docker.internal:18443
command:
- /opt/alys/target/release/app
- /bin/alys
- --dev
# - --aura-secret-key 0000000000000000000000000000000000000000000000000000000000000001
- --geth-url
Expand All @@ -103,13 +104,15 @@ services:
- /lib/alys/data/wallet
# - --bitcoin-secret-key 0000000000000000000000000000000000000000000000000000000000000001
- --bitcoin-rpc-url
- http://host.docker.internal:18443
- http://bitcoin-core:18443
# - http://host.docker.internal:18443
- --bitcoin-rpc-user
- bitcoin
- --bitcoin-rpc-pass
- bitcoin
depends_on:
- reth
- bitcoin-core
ports:
- 3000:3000

Expand Down

0 comments on commit 714e381

Please sign in to comment.