Docker meteor ubuntu, meteor create app

Hi

I’m building a CI workflow for meteor using docker, just trying to get the default app image built.

I got this docker file, it builds successfully, but the ‘meteor create app’ command doesn’t actually create the app.

I have to login to the container via ‘docker exec’ and rerun it manually to build the default app.

Any suggestions on how to make it work through the Dockerfile?

# The tag here should match the Meteor version of your app, per .meteor/release
FROM phusion/baseimage:0.11


RUN useradd -rm -d /home/alpha -s /bin/bash -g root -G sudo -u 1000 alpha
USER alpha
WORKDIR /home/alpha
RUN curl https://install.meteor.com/ | sh
RUN echo 'export PATH="$PATH:$HOME/.meteor"' >> ~/.bashrc
ENV PATH="${PATH}:${HOME}/.meteor"
RUN . ~/.bashrc && echo $PATH
EXPOSE 3000
ENV BIND_IP=127.0.0.1


USER root
RUN apt-get update
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mv /bin/sh /bin/sh_tmp && ln -s /bin/bash /bin/sh

USER alpha
WORKDIR /home/alpha/
SHELL ["/bin/bash", "-c", "meteor create app && echo 'Creating your first meteor app!'"]


WORKDIR /home/alpha/
USER root

# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]

ubuntu, docker, meteor, meteor create app, Dockerfile

why are you running this as “shell” ? Just use RUN. Carefully read the error messages.