Fixing Docker build images to add new messages directory

This commit is contained in:
David Négrier 2020-09-18 17:18:50 +02:00
parent 32f92d5c45
commit 7826b2ea8d
4 changed files with 9 additions and 5 deletions

View file

@ -1,7 +1,9 @@
FROM thecodingmachine/nodejs:12
COPY --chown=docker:docker . .
COPY --chown=docker:docker back .
COPY --chown=docker:docker messages ../messages
RUN yarn install
RUN cd /usr/src/messages && yarn install
ENV NODE_ENV=production

View file

@ -8,7 +8,7 @@ import {BatchMessage, SubMessage} from "../../../../messages/generated/messages_
export interface ExSocketInterface extends Socket, Identificable {
token: string;
roomId: string;
webRtcRoomId: string;
webRtcRoomId: string|undefined;
userId: number; // A temporary (autoincremented) identifier for this user
userUuid: string; // A unique identifier for this user
name: string;