Updated dependencies, fixed migrations usage

This commit is contained in:
Benjamin Sherriff
2023-10-03 10:05:14 -04:00
parent e80ad9680a
commit 6c8a7ceefc
16 changed files with 141 additions and 116 deletions

View File

@@ -1,10 +1,12 @@
FROM rust:1.70.0 as builder
# Builder
FROM rust:1.72.1-bookworm as builder
WORKDIR /siren
ADD src ./src/
ADD Cargo.toml ./
RUN apt-get update && apt-get install -y cmake && \
cargo build --release --bin siren
# Packages
FROM debian:bullseye-slim as packages
WORKDIR /packages
RUN apt-get update && apt-get install -y curl tar xz-utils && \
@@ -19,6 +21,7 @@ RUN apt-get update && apt-get install -y curl tar xz-utils && \
# curl -L https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip > libtorch.zip && \
# unzip libtorch.zip && rm libtorch.zip
# Runner
FROM debian:bullseye-slim as runtime
WORKDIR /siren
RUN apt-get update && apt-get install -y libopus-dev libpq5 libpq-dev && apt-get auto-remove -y