Skip to content

Commit b878607

Browse files
author
ide-coder
committed
fix: add rbenv initialization to .bashrc for ruby command
1 parent 6ee08f0 commit b878607

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ RUN /opt/conda/bin/conda config --set show_channel_urls yes
168168
# npm config (already configured in Layer 5)
169169
RUN mkdir -p /home/coder/.npm
170170

171+
# Add rbenv initialization to .bashrc
172+
RUN echo 'eval "$(/home/coder/.rbenv/bin/rbenv init - bash)"' >> /home/coder/.bashrc
173+
171174
# Set ownership for coder user
172175
RUN chown -R coder:coder /home/coder \
173176
&& chown -R coder:coder /opt/conda

0 commit comments

Comments
 (0)