From f5e94837e992cc79a2da19ccfc80092d2cab4b0a Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 20 Nov 2022 21:08:58 +0100 Subject: Add dockerfile --- server/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 server/Dockerfile (limited to 'server/Dockerfile') diff --git a/server/Dockerfile b/server/Dockerfile new file mode 100644 index 0000000..0bc6f05 --- /dev/null +++ b/server/Dockerfile @@ -0,0 +1,12 @@ +# build stage +FROM rust:latest as cargo-build + +WORKDIR /usr/src/m6-ie-2022 +COPY . . + +ARG DATABASE_URL="postgres://user:password@localhost:5432/m6-ie-2022" + +RUN cargo install --path . && cargo install sqlx-cli +EXPOSE 9090 + +CMD ["m6-ie-2022"] -- cgit v1.2.3-18-g5258