Merge pull request #8 from cdr/coder-configure

Add coder/configure example
This commit is contained in:
G r e y 2020-07-09 13:38:06 -04:00 committed by GitHub
commit 51a161b627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,5 @@
FROM ubuntu:latest
RUN apt-get update && apt-get install -y curl
COPY [ "configure", "/coder/configure" ]

11
configure/configure vendored Executable file
View File

@ -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