diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
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"] |