Skip to content

Commit

Permalink
Updated Dockerfile, README, and util.rs for Docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
MarketMadi committed Jan 10, 2024
1 parent 7e21f2f commit 1dbb5d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /usr/src/civkit-node
COPY . .

# Build the application
RUN cargo build
RUN cargo build --release --bin=civkitd

# Stage 2: Setup the runtime environment
FROM ubuntu:latest
Expand All @@ -25,6 +25,12 @@ COPY --from=builder /usr/src/civkit-node/target/debug/civkitd /usr/local/bin/civ
COPY --from=builder /usr/src/civkit-node/target/debug/civkit-cli /usr/local/bin/civkit-cli
COPY --from=builder /usr/src/civkit-node/target/debug/civkit-sample /usr/local/bin/civkit-sample

# Expose ports
EXPOSE 50031
EXPOSE 9735
EXPOSE 50021
EXPOSE 18443

# Set the default command to run the main binary
CMD ["civkitd"]

0 comments on commit 1dbb5d3

Please sign in to comment.