Compare commits
2 Commits
88d4505d2f
...
6a6a94dfe6
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a6a94dfe6 | |||
| c99960307e |
@@ -9,7 +9,7 @@ services:
|
|||||||
[
|
[
|
||||||
"sh",
|
"sh",
|
||||||
"-c",
|
"-c",
|
||||||
"mkdir -p /config /workspace && chown -R 1000:1000 /config /workspace && chmod 755 /config /workspace",
|
"mkdir -p /config/gog /config/ssh /config/gws /workspace && chown -R 1000:1000 /config /workspace && chmod 755 /config /workspace",
|
||||||
]
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- openclaw-config:/config
|
- openclaw-config:/config
|
||||||
|
|||||||
@@ -54,17 +54,17 @@ COPY bin/* /usr/local/bin/
|
|||||||
RUN chmod +x /usr/local/bin/*
|
RUN chmod +x /usr/local/bin/*
|
||||||
|
|
||||||
# Create directories in the persistent volume location
|
# Create directories in the persistent volume location
|
||||||
RUN mkdir -p /home/node/.openclaw/ssh /home/node/.openclaw/gog /opt/openclaw/defaults \
|
RUN mkdir -p /home/node/.openclaw/ssh /home/node/.openclaw/gog /home/node/.openclaw/gws /opt/openclaw/defaults \
|
||||||
&& chown -R node:node /home/node/.openclaw
|
&& chown -R node:node /home/node/.openclaw /opt/openclaw/defaults
|
||||||
|
|
||||||
# Link gog config and ssh to standard locations
|
# Link gog config and ssh to standard locations
|
||||||
RUN mkdir -p /home/node/.config /home/node/.ssh \
|
RUN mkdir -p /home/node/.config /home/node/.ssh \
|
||||||
&& ln -sf /home/node/.openclaw/gog /home/node/.config/gog \
|
&& ln -sf /home/node/.openclaw/gog /home/node/.config/gogcli \
|
||||||
&& ln -sf /home/node/.openclaw/ssh /home/node/.ssh
|
&& ln -sf /home/node/.openclaw/ssh /home/node/.ssh \
|
||||||
|
&& ln -sf /home/node/.openclaw/gws /home/node/.config/gws
|
||||||
|
|
||||||
# Copy default config into the image
|
# Copy default config into the image
|
||||||
COPY config/openclaw.json /opt/openclaw/defaults/openclaw.json
|
COPY config/openclaw.json /opt/openclaw/defaults/openclaw.json
|
||||||
RUN chown -R node:node /opt/openclaw/defaults
|
|
||||||
|
|
||||||
# Switch back to node user
|
# Switch back to node user
|
||||||
USER node
|
USER node
|
||||||
|
|||||||
Reference in New Issue
Block a user