Spaces:
Sleeping
Sleeping
Possible fix for permision issues in RocketChat
Browse fileshacky fix for https://github.com/RocketChat/Rocket.Chat/issues/34840
- Dockerfile +11 -3
Dockerfile
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
FROM ubuntu:latest
|
2 |
|
3 |
# Install essential packages
|
@@ -53,7 +54,13 @@ RUN curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
|
|
53 |
tar -xzf /tmp/rocket.chat.tgz -C /opt/Rocket.Chat --strip-components=1 && \
|
54 |
cd /opt/Rocket.Chat/programs/server && \
|
55 |
npm install --production && \
|
56 |
-
chown -R rocketchat:rocketchat /opt/Rocket.Chat
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
# Set environment variables
|
59 |
ENV ROOT_URL=http://localhost:7860 \
|
@@ -66,6 +73,7 @@ EXPOSE 27017 7860
|
|
66 |
|
67 |
# Copy startup script
|
68 |
COPY start.sh /start.sh
|
69 |
-
RUN chmod +x /start.sh
|
|
|
70 |
|
71 |
-
ENTRYPOINT ["/start.sh"]
|
|
|
1 |
+
# Dockerfile
|
2 |
FROM ubuntu:latest
|
3 |
|
4 |
# Install essential packages
|
|
|
54 |
tar -xzf /tmp/rocket.chat.tgz -C /opt/Rocket.Chat --strip-components=1 && \
|
55 |
cd /opt/Rocket.Chat/programs/server && \
|
56 |
npm install --production && \
|
57 |
+
chown -R rocketchat:rocketchat /opt/Rocket.Chat && \
|
58 |
+
chmod -R 755 /opt/Rocket.Chat
|
59 |
+
|
60 |
+
# Set up additional permissions
|
61 |
+
RUN mkdir -p /app/.npm && \
|
62 |
+
chown -R rocketchat:rocketchat /app/.npm && \
|
63 |
+
chmod -R 755 /app/.npm
|
64 |
|
65 |
# Set environment variables
|
66 |
ENV ROOT_URL=http://localhost:7860 \
|
|
|
73 |
|
74 |
# Copy startup script
|
75 |
COPY start.sh /start.sh
|
76 |
+
RUN chmod +x /start.sh && \
|
77 |
+
chown rocketchat:rocketchat /start.sh
|
78 |
|
79 |
+
ENTRYPOINT ["/start.sh"]
|