20 lines
515 B
Docker
20 lines
515 B
Docker
FROM archlinux:latest
|
|
|
|
WORKDIR /app/
|
|
|
|
RUN pacman -Sy rustup gcc postgresql --noconfirm
|
|
RUN rustup toolchain install nightly && \
|
|
rustup default nightly
|
|
|
|
RUN cargo install diesel_cli --no-default-features --features postgres
|
|
|
|
ADD bitque-server /app/bitque-server
|
|
ADD bitque-data /app/bitque-data
|
|
|
|
RUN pacman -Sy openssl openssh pkgconf --noconfirm
|
|
RUN pkg-config --libs openssl
|
|
|
|
CMD cd /app/bitque-server && \
|
|
$HOME/.cargo/bin/diesel setup --database-url=$DATABASE_URL && \
|
|
cargo run --bin bitque_server
|