diff --git a/client/Dockerfile b/client/Dockerfile index 6a60006..6097cae 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -15,11 +15,13 @@ FROM nginx:alpine # Remove the default Nginx configuration file RUN rm /etc/nginx/conf.d/default.conf +RUN mkdir -p /app/attachments && chown -R node:node /app/attachments + # Copy the built files from the builder stage to the Nginx image COPY --from=builder /app/client/dist /usr/share/nginx/html # Expose port 80 EXPOSE 80 - +USER node # Start Nginx in the foreground CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/client/src/components/chat/chatArea/AnimatedMessage.tsx b/client/src/components/chat/chatArea/AnimatedMessage.tsx index 10697dd..8a59f93 100644 --- a/client/src/components/chat/chatArea/AnimatedMessage.tsx +++ b/client/src/components/chat/chatArea/AnimatedMessage.tsx @@ -28,7 +28,7 @@ const AnimatedMessage = ({ onDelete, message }: AnimatedMessageProps) => { ${isRemoving ? 'transition-all duration-300 opacity-0 -translate-x-full' : 'opacity-100'}`} >