docker-carto-jw/Dockerfile

51 lines
1.8 KiB
Docker
Raw Normal View History

2023-05-10 21:00:00 +08:00
#
# Cartodb container
2023-05-10 21:07:45 +08:00
# ubuntu:18.04
2023-05-10 21:00:00 +08:00
#
2023-05-10 21:07:45 +08:00
FROM sverhoeven/cartodb
2023-05-10 21:00:00 +08:00
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
2023-05-10 21:03:23 +08:00
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
2023-05-10 22:33:55 +08:00
RUN apt-get install -y nano net-tools ca-certificates
2023-05-11 00:29:42 +08:00
#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
2023-05-11 00:16:17 +08:00
2023-05-10 23:38:40 +08:00
#RUN rm -rf /cartodb
2023-05-10 22:42:18 +08:00
2023-05-10 23:38:40 +08:00
#RUN git clone https://git.kongjian.xin:8443/cartodb/cartodb-4.29.git cartodb && \
# cd cartodb && \
2023-05-10 22:42:18 +08:00
# 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 - && \
2023-05-10 23:38:40 +08:00
# 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' && \
2023-05-10 22:42:18 +08:00
# cp config/grunt_development.json ./config/grunt_true.json && \
2023-05-10 23:38:40 +08:00
# /bin/bash -l -c 'bundle exec grunt'
2023-05-10 22:42:18 +08:00
# && \
#rm -rf .git /root/.cache/pip node_modules
2023-05-10 21:11:39 +08:00