Skip to content

Commit

Permalink
add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Aug 28, 2024
1 parent b1b5cba commit 3d4f18a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
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
6 changes: 6 additions & 0 deletions docker-compose.yml
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

0 comments on commit 3d4f18a

Please sign in to comment.