2020-05-22 17:35:32 +02:00
|
|
|
FROM archlinux:latest
|
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
RUN pacman -Sy rustup gcc postgresql --noconfirm
|
2020-06-04 20:47:10 +02:00
|
|
|
RUN rustup toolchain install nightly && \
|
|
|
|
rustup default nightly
|
2020-05-22 17:35:32 +02:00
|
|
|
|
2020-06-04 20:47:10 +02:00
|
|
|
RUN cargo install diesel_cli --no-default-features --features postgres
|
2020-05-22 17:35:32 +02:00
|
|
|
|
2023-03-31 23:25:20 +02:00
|
|
|
ADD bitque-server /app/bitque-server
|
|
|
|
ADD bitque-data /app/bitque-data
|
2020-06-04 20:47:10 +02:00
|
|
|
|
|
|
|
RUN pacman -Sy openssl openssh pkgconf --noconfirm
|
|
|
|
RUN pkg-config --libs openssl
|
2020-05-22 17:35:32 +02:00
|
|
|
|
2023-03-31 23:25:20 +02:00
|
|
|
CMD cd /app/bitque-server && \
|
2020-06-04 20:47:10 +02:00
|
|
|
$HOME/.cargo/bin/diesel setup --database-url=$DATABASE_URL && \
|
2023-03-31 23:25:20 +02:00
|
|
|
cargo run --bin bitque_server
|