More work.
Added chat service Updated packet service to pass the tcp stream around in a Arc type. Updated character position data to not require multiplying the coords Added more debug logs Added an interceptor for gRPC comms with the chat server Updated build and push script for the chat server changes
This commit is contained in:
25
chat-service/Dockerfile
Normal file
25
chat-service/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM rust:alpine AS builder
|
||||
LABEL authors="raven"
|
||||
|
||||
RUN apk add --no-cache musl-dev libressl-dev protobuf-dev
|
||||
|
||||
WORKDIR /usr/src/utils
|
||||
COPY ./utils .
|
||||
|
||||
WORKDIR /usr/src/proto
|
||||
COPY ./proto .
|
||||
|
||||
WORKDIR /usr/src/chat-service
|
||||
COPY ./chat-service .
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
FROM alpine:3
|
||||
|
||||
RUN apk add --no-cache libssl3 libgcc
|
||||
|
||||
COPY --from=builder /usr/src/chat-service/target/release/chat-service /usr/local/bin/chat-service
|
||||
|
||||
EXPOSE 50054
|
||||
|
||||
CMD ["chat-service"]
|
||||
Reference in New Issue
Block a user