-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
b1b5cba
commit 3d4f18a
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM rust:slim | ||
|
||
RUN apt-get update && apt-get install curl build-essential libssl-dev musl-tools -y | ||
|
||
WORKDIR /myapp | ||
|
||
COPY . . | ||
|
||
RUN rustup target add x86_64-unknown-linux-musl | ||
RUN cargo build --release --target=x86_64-unknown-linux-musl | ||
|
||
CMD ["/myapp/target/x86_64-unknown-linux-musl/release/fl-server", "--config-path", "config.toml"] | ||
EXPOSE 3000 |
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,6 @@ | ||
services: | ||
fl-server: | ||
build: . | ||
ports: | ||
# <HOST_PORT>:<CONTAINER_PORT> | ||
- 3000:3000 |