Merge pull request #8 from cdr/coder-configure
Add coder/configure example
This commit is contained in:
commit
51a161b627
|
@ -0,0 +1,5 @@
|
|||
FROM ubuntu:latest
|
||||
|
||||
RUN apt-get update && apt-get install -y curl
|
||||
|
||||
COPY [ "configure", "/coder/configure" ]
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Configurations that depend on the $HOME directory
|
||||
|
||||
## Install NVM, but only if it's not already installed
|
||||
if [ ! -d $HOME/.nvm ]; then
|
||||
echo "Installing NVM"
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
|
||||
else
|
||||
echo "NVM is already installed"
|
||||
fi
|
Loading…
Reference in New Issue