steedos-platform/.gitpod.Dockerfile

39 lines
1.2 KiB
Docker
Raw Normal View History

2021-12-27 12:13:46 +00:00
FROM gitpod/workspace-base:latest
# Install MongoDB
# Source: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu-tarball/#install-mongodb-community-edition
USER gitpod
RUN mkdir -p /tmp/mongodb && \
cd /tmp/mongodb && \
wget -qOmongodb.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.2.17.tgz && \
tar xf mongodb.tgz && \
cd mongodb-* && \
sudo cp bin/* /usr/local/bin/ && \
rm -rf /tmp/mongodb
# Install node
USER gitpod
ENV NODE_VERSION=12.22.7
ENV TRIGGER_REBUILD=1
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | PROFILE=/dev/null bash \
&& bash -c ". .nvm/nvm.sh \
2021-12-30 08:00:18 +00:00
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& npm install -g typescript yarn node-gyp"
2021-12-27 12:13:46 +00:00
ENV PATH=$PATH:/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin
# Install Redis
USER gitpod
RUN wget https://download.redis.io/releases/redis-6.2.6.tar.gz && \
tar xzf redis-6.2.6.tar.gz && \
cd redis-6.2.6 && \
make && \
cd .. && \
rm -f redis-6.2.6.tar.gz
ENV PATH=$PATH:/home/gitpod/redis-6.2.6/src
2021-12-30 08:00:18 +00:00
# Install Meteor
RUN curl https://install.meteor.com/?release=1.9.3 | sh
2021-12-27 12:13:46 +00:00
USER gitpod