Public Repository

Last pushed: 2 months ago
Short Description
Meteor container with yarn, run yarn with `meteor yarn`
Full Description

Version 1.6

FROM ubuntu:17.10

ENV RELEASE 1.6
ENV METEOR_ALLOW_SUPERUSER true

RUN apt update && apt upgrade -y \
  && apt install -y -qq curl apt-transport-https git-core
# install yarn globally to install npm packages faster (tm)
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 curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt update && apt install -y -qq yarn nodejs
RUN npm install npm@latest -g

# cleanup
RUN apt clean && \
  rm -rf /var/lib/apt/lists

# meteor installation
ENV user meteor
RUN useradd $user && mkdir /home/$user && chown $user:$user /home/$user -R
WORKDIR /home/$user
RUN su $user -c "curl https://install.meteor.com/?release=$RELEASE | sh"
RUN ls /home/meteor/.meteor/packages/meteor-tool
RUN cp /home/meteor/.meteor/packages/meteor-tool/${RELEASE}.0/mt-os.linux.x86_64/scripts/admin/launch-meteor /usr/bin/meteor
RUN chown $user /home/meteor/.meteor -R
RUN mkdir /source /build && chown $user /source /build

USER $user
# install yarn in meteor distribution globally too, so you can run `meteor yarn`
RUN meteor npm install --global yarn
RUN meteor node --version > .nvmrc

USER root

USER $user
# check version of node from meteor and install it too
RUN node --version
RUN npm --version

WORKDIR /source
CMD meteor
Docker Pull Command
Owner
linguala