21 lines
661 B
Docker
21 lines
661 B
Docker
FROM codercom/enterprise-base:ubuntu
|
|
|
|
# Run everything as root
|
|
USER root
|
|
|
|
# Install whichever Node version is LTS
|
|
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
|
|
apt-get install -y nodejs
|
|
|
|
# Install Yarn
|
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y yarn
|
|
|
|
COPY deprecated.txt /etc/motd
|
|
RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc
|
|
|
|
# Set back to coder user
|
|
USER coder
|