51 lines
1.8 KiB
Docker
51 lines
1.8 KiB
Docker
#
|
|
# Cartodb container
|
|
# ubuntu:18.04
|
|
#
|
|
FROM sverhoeven/cartodb
|
|
LABEL maintainer="spacen onenetcom <kuaidian@spacen.net>"
|
|
|
|
# Configuring locales
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
RUN apt-get update
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ADD ./fonts/SourceHanSansCN-Light.otf /usr/share/fonts/SourceHanSansCN-Light.otf
|
|
ADD ./fonts/SourceHanSerifCN-Regular.otf /usr/share/fonts/SourceHanSerifCN-Regular.otf
|
|
ADD ./fonts/SourceHanSansCN-Regular.otf /usr/share/fonts/SourceHanSansCN-Regular.otf
|
|
|
|
RUN apt-get install -y nano net-tools ca-certificates
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
|
|
apt-get install -y nodejs && \
|
|
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null && \
|
|
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list && \
|
|
apt-get update && apt-get install -y yarn
|
|
|
|
#RUN rm -rf /cartodb
|
|
|
|
#RUN git clone https://git.kongjian.xin:8443/cartodb/cartodb-4.29.git cartodb && \
|
|
# cd cartodb && \
|
|
# Install cartodb extension
|
|
# cd lib/sql && \
|
|
# PGUSER=postgres make install && \
|
|
# service postgresql start && /bin/su postgres -c \
|
|
# /tmp/cartodb_pgsql.sh && service postgresql stop && \
|
|
# cd - && \
|
|
# npm install && \
|
|
# rm -r /tmp/npm-* /root/.npm && \
|
|
# perl -pi -e 's/gdal==1\.10\.0/gdal==2.2.2/' python_requirements.txt && \
|
|
# pip install --no-binary :all: -r python_requirements.txt && \
|
|
# gem install bundler --version=1.17.3 && gem install compass archive-tar-minitar rack && \
|
|
# bundle update thin && \
|
|
# /bin/bash -l -c 'bundle install' && \
|
|
# cp config/grunt_development.json ./config/grunt_true.json && \
|
|
# /bin/bash -l -c 'bundle exec grunt'
|
|
# && \
|
|
#rm -rf .git /root/.cache/pip node_modules
|
|
|
|
|
|
|