Created
November 3, 2020 12:29
-
-
Save keymastervn/8131bba92f32b6e6f0382e1a02182a04 to your computer and use it in GitHub Desktop.
The flex Dockerfile for jemalloc ruby-2.6.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#fullstaq-ruby enables malloc-trim and jemalloc which is said to save up to 50% memory consumption | |
#ARG RUBY_VERSION=2.6.6-jemalloc | |
#FROM quay.io/evl.ms/fullstaq-ruby:${RUBY_VERSION}-slim | |
FROM swipesense/ruby-jemalloc:2.6-buster-slim | |
ENV LANG C.UTF-8 | |
ENV DEBIAN_FRONTEND noninteractive | |
# Specify JP mirror, other mirrors are less stable than JP's | |
RUN echo 'deb http://ftp.jp.debian.org/debian/ buster main contrib non-free' > /etc/apt/sources.list | |
RUN echo 'deb http://ftp.jp.debian.org/debian/ buster-updates main contrib' >> /etc/apt/sources.list | |
RUN echo 'deb http://ftp.jp.debian.org/debian/ buster-backports main contrib non-free' >> /etc/apt/sources.list | |
RUN echo '#deb-src http://ftp.jp.debian.org/debian/ buster main contrib non-free' >> /etc/apt/sources.list | |
RUN echo '#deb-src http://ftp.jp.debian.org/debian/ buster-updates main contrib' >> /etc/apt/sources.list | |
RUN echo '#deb-src http://ftp.jp.debian.org/debian/ buster-backports main contrib non-free' >> /etc/apt/sources.list | |
RUN apt-get update -qq && apt-get install -y build-essential default-mysql-client imagemagick apt-transport-https curl apt-utils wget git | |
CMD /bin/bash | |
RUN mkdir /app | |
WORKDIR /app | |
# Install yarn | |
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | |
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 apt-get update -qq && apt-get install -y nodejs yarn | |
RUN gem uninstall bundler && gem install -N bundler | |
# Install GCP and cloud_sql_proxy | |
#RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
#RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - | |
#RUN apt-get update && apt-get install -y google-cloud-sdk | |
#RUN wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 -O /usr/local/bin/cloud_sql_proxy | |
#RUN chmod +x /usr/local/bin/cloud_sql_proxy | |
#RUN mkdir -p -m 777 /cloudsql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment