Skip to content
Snippets Groups Projects
Commit acf19b9d authored by Nulo's avatar Nulo
Browse files

compilar contenedor en 2023

parent 846a3345
Branches master
No related tags found
No related merge requests found
Pipeline #154403 failed
DATABASE_URL="postgres://me:1@localhost/hnrd_dev"
DATABASE_URL="postgres://postgres:1@localhost/hnrd_dev"
LISTEN_ON="0.0.0.0:8088"
IMAGE_PATH="./image_uploads/"
This diff is collapsed.
......@@ -9,9 +9,9 @@ edition = "2018"
[dependencies]
futures = "0.3.1"
# web framework
actix-web = "2.0.0"
actix-rt = "1.0.0"
actix-cors = "0.2.0"
actix-web = "2"
actix-rt = "1"
actix-cors = "0.2"
actix-files = "0.2.1"
# parseo
serde = { version = "1.0.93", features = ["derive"] }
......
FROM debian:buster-slim
RUN apt-get update && apt-get install -y libpq5
COPY target/release/hnrd-backend /usr/local/bin/
FROM docker.io/rust:1.70 as builder
RUN apt-get update && apt-get install -y libpq-dev && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/hnrd
COPY . .
RUN cargo install --path .
FROM docker.io/debian:bullseye-slim
RUN apt-get update && apt-get install -y libpq5 && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/hnrd-backend /usr/local/bin/
ENV LISTEN_ON=0.0.0.0:8000
EXPOSE 8000
ENV IMAGE_PATH=/image_uploads
# ENV DATABASE_URL
CMD ["hnrd-backend"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment