mirror of
https://github.com/ilyakooo0/reshape.git
synced 2024-11-25 05:55:50 +03:00
Add Dockerfile
This commit is contained in:
parent
fda6dc8f40
commit
db36ba0c1b
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
/target
|
||||
Cargo.lock
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM rust:1.57.0 AS builder
|
||||
WORKDIR /usr/src/reshape
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
||||
FROM debian:bullseye AS runtime
|
||||
WORKDIR /usr/share/app
|
||||
COPY --from=builder /usr/src/reshape/target/release/reshape /usr/local/bin/reshape
|
||||
CMD ["reshape"]
|
@ -44,10 +44,7 @@ Binaries are available for macOS and Linux under [Releases](https://github.com/f
|
||||
Reshape is available as a Docker image on [Docker Hub](https://hub.docker.com/repository/docker/fabianlindfors/reshape).
|
||||
|
||||
```shell
|
||||
docker run \
|
||||
-v $(pwd):/usr/share/app \ #
|
||||
fabianlindfors/reshape \
|
||||
reshape migrate
|
||||
docker run -v $(pwd):/usr/share/app fabianlindfors/reshape reshape migrate
|
||||
```
|
||||
|
||||
### Creating your first migration
|
||||
|
Loading…
Reference in New Issue
Block a user