summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/Dockerfile12
1 files changed, 12 insertions, 0 deletions
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"]