diff --git a/Dockerfile b/Dockerfile index 5bc8c1d..b1216c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,17 +5,19 @@ RUN cargo install wasm-pack WORKDIR /build COPY . . RUN --mount=type=cache,target=/usr/local/cargo/registry \ -# --mount=type=cache,target=/build/target \ + # --mount=type=cache,target=/build/target \ cd ./volts-front && \ wasm-pack build --target web && \ cd .. && \ cargo build --bin volts-server --release # Runtime image -FROM debian:bullseye +FROM debian:bookworm RUN apt-get update -RUN apt-get -y install postgresql-client-13 +RUN apt install -y postgresql-common +RUN /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -i -v 14 +RUN apt-get -y install postgresql-client-14 RUN apt-get -y install nginx RUN apt-get install ca-certificates -y RUN update-ca-certificates @@ -35,4 +37,4 @@ COPY --from=builder /build/volts-front/pkg/volts_front.js /app/static/main.js COPY --from=builder /build/volts-front/pkg/volts_front_bg.wasm /app/static/main.wasm COPY --from=builder /build/target/release/volts-server /app/volts-server -CMD nginx && /app/volts-server \ No newline at end of file +CMD nginx && /app/volts-server diff --git a/fly.toml b/fly.toml index a84e972..103d915 100644 --- a/fly.toml +++ b/fly.toml @@ -19,8 +19,8 @@ processes = [] script_checks = [] [services.concurrency] - hard_limit = 25 - soft_limit = 20 + hard_limit = 100 + soft_limit = 25 type = "connections" [[services.ports]]