summaryrefslogtreecommitdiff
path: root/server/Dockerfile
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-11-20 21:08:58 +0100
committerSanto Cariotti <santo@dcariotti.me>2022-11-20 21:08:58 +0100
commitf5e94837e992cc79a2da19ccfc80092d2cab4b0a (patch)
tree31aad16207210576959f038987446a87f10b21fd /server/Dockerfile
parent19ec72443a48c9b6f7e4bbe303bc61dabdcfcfe7 (diff)
Add dockerfile
Diffstat (limited to 'server/Dockerfile')
-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"]