summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-11-20 21:37:34 +0100
committerSanto Cariotti <santo@dcariotti.me>2022-11-20 21:37:34 +0100
commit8d47b483a06a0848a605374ddf12e25e0c2e359f (patch)
tree26880e26dce54c097f73fc1bac06d44bf515eb6d /Dockerfile
parentf5e94837e992cc79a2da19ccfc80092d2cab4b0a (diff)
Fix dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..0d5b8e5
--- /dev/null
+++ b/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 server/. && cargo install sqlx-cli
+EXPOSE 9090
+
+CMD ["m6-ie-2022"]