-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Virtual Machine | ||
|
||
This guide outline the process of deploying to a virtual machine, e.g. AWS EC2 or DigitalOcean Droplets. | ||
|
||
Here we start from Ubuntu 24.04 LTS. | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Container | ||
|
||
This guide outline the process of building an image for deploying to containerized environments, e.g. Kubernetes. | ||
|
||
Here we start from Debian 12. | ||
|
||
```Dockerfile | ||
FROM rust:1.81-bookworm AS build | ||
|
||
WORKDIR /app | ||
|
||
# Copy the source tree | ||
COPY . ./ | ||
|
||
# Build release | ||
RUN cargo build --release | ||
|
||
############################################################### | ||
|
||
FROM debian:bookworm-slim | ||
|
||
ENV RUST_LOG=info | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=build /app/target/release/sea-orm-pro-backend-cli /app | ||
COPY config /app/config | ||
COPY pro_admin /app/pro_admin | ||
COPY assets /app/assets | ||
COPY db.sqlite /app | ||
|
||
CMD ["/app/sea-orm-pro-backend-cli", "start"] | ||
``` |