Coder.comC
Coder.com3y ago
18 replies
oskar

Docker file not appending to file

I am trying to add some text to my .bashrc file of the coder user, but it is simply not adding it.

Here is my dockerfile:

FROM coder-base:0.2.2

# Install everything as root
USER root

# Install latest deno
ENV DENO_INSTALL /home/coder/.deno
RUN curl -fsSL https://deno.land/x/install/install.sh | sh

RUN echo -e  "export DENO_INSTALL=\"/home/coder/.deno\"\nexport PATH=\"/home/user/coder/.deno/bin:${PATH}\"" >> /home/coder/.bashrc
USER coder

Running the exact same command as root in a terminal will add the text to the .bashrc
Was this page helpful?