bitque/jirs-server/Dockerfile

20 lines
503 B
Docker
Raw Normal View History

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
2020-06-04 20:47:10 +02:00
ADD jirs-server /app/jirs-server
ADD jirs-data /app/jirs-data
RUN pacman -Sy openssl openssh pkgconf --noconfirm
RUN pkg-config --libs openssl
2020-05-22 17:35:32 +02:00
2020-06-04 20:47:10 +02:00
CMD cd /app/jirs-server && \
$HOME/.cargo/bin/diesel setup --database-url=$DATABASE_URL && \
cargo run --bin jirs_server