foodsoft (20230823-03)
Installation
docker pull git.local-it.org/foodsoft/foodsoft:20230823-03
sha256:a106b2c1be0a4209434e49c8f7428766dcc8488e581597246e2b616029250b8a
Image Layers
ADD file:917750a82b29f8f7f88a121017bd9dfeb0fbcc8f0697a009f08b6b58246eff4b in / |
CMD ["bash"] |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl netbase wget ; rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -ex; if ! command -v gpg > /dev/null; then apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr ; rm -rf /var/lib/apt/lists/*; fi |
/bin/sh -c apt-get update && apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps && rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev $( if apt-cache show 'default-libmysqlclient-dev' 2>/dev/null | grep -q '^Version:'; then echo 'default-libmysqlclient-dev'; else echo 'libmysqlclient-dev'; fi ) ; rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -eux; mkdir -p /usr/local/etc; { echo 'install: --no-document'; echo 'update: --no-document'; } >> /usr/local/etc/gemrc |
ENV LANG=C.UTF-8 |
ENV RUBY_MAJOR=2.7 |
ENV RUBY_VERSION=2.7.7 |
ENV RUBY_DOWNLOAD_SHA256=b38dff2e1f8ce6e5b7d433f8758752987a6b2adfd9bc7571dbc42ea5d04e3e4c |
/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends bison dpkg-dev libgdbm-dev ruby ; rm -rf /var/lib/apt/lists/*; wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz"; echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; mkdir -p /usr/src/ruby; tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; rm ruby.tar.xz; cd /usr/src/ruby; { echo '#define ENABLE_PATH_CHECK 0'; echo; cat file.c; } > file.c.new; mv file.c.new file.c; autoconf; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --disable-install-doc --enable-shared ; make -j "$(nproc)"; make install; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | grep -vE '^/usr/local/lib/' | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; cd /; rm -r /usr/src/ruby; if dpkg -l | grep -i ruby; then exit 1; fi; [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; ruby --version; gem --version; bundle --version |
ENV GEM_HOME=/usr/local/bundle |
ENV BUNDLE_SILENCE_ROOT_WARNING=1 BUNDLE_APP_CONFIG=/usr/local/bundle |
ENV PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
/bin/sh -c mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" |
CMD ["irb"] |
ENV PORT=3000 SMTP_SERVER_PORT=2525 RAILS_LOG_TO_STDOUT=true RAILS_SERVE_STATIC_FILES=true |
WORKDIR /usr/src/app |
RUN /bin/sh -c buildDeps='libmagic-dev nodejs chromium' && export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install --no-install-recommends -y $buildDeps && echo 'gem: --no-document' >> ~/.gemrc && gem install bundler && bundle config build.nokogiri "--use-system-libraries" # buildkit |
COPY bin bin # buildkit |
COPY plugins plugins # buildkit |
COPY Gemfile Gemfile.lock docker-entrypoint.sh ./ # buildkit |
ENV RAILS_ENV=production |
RUN /bin/sh -c supercronicUrl=https://github.com/aptible/supercronic/releases/download/v0.1.3/supercronic-linux-amd64 && supercronicBin=/usr/local/bin/supercronic && supercronicSha1sum=96960ba3207756bb01e6892c978264e5362e117e && curl -fsSL -o "$supercronicBin" "$supercronicUrl" && echo "$supercronicSha1sum $supercronicBin" | sha1sum -c - && chmod +x "$supercronicBin" # buildkit |
RUN /bin/sh -c bundle config set deployment 'true' && bundle install --without development test # buildkit |
COPY . ./ # buildkit |
COPY /usr/src/app/swagger/v1/swagger.yaml /usr/src/app/swagger/v1/swagger.yaml # buildkit |
RUN /bin/sh -c cp config/app_config.yml.SAMPLE config/app_config.yml && cp config/database.yml.MySQL_SAMPLE config/database.yml && cp config/storage.yml.SAMPLE config/storage.yml && SECRET_KEY_BASE=42 bundle exec rake assets:precompile # buildkit |
RUN /bin/sh -c apt-get purge -y --auto-remove $buildDeps && rm -Rf tmp/* /var/lib/apt/lists/* /var/cache/apt/* ~/.gemrc ~/.bundle && bundle exec whenever >crontab # buildkit |
RUN /bin/sh -c mkdir -p tmp storage && chown nobody config/app_config.yml && chown nobody tmp && chown nobody storage # buildkit |
USER nobody |
EXPOSE map[3000/tcp:{}] |
VOLUME [/usr/src/app/storage] |
ENTRYPOINT ["./docker-entrypoint.sh"] |
CMD ["./proc-start" "web"] |
Details
Versions (63)
View all
20230823-04
2023-08-23
20230823-03
2023-08-23
20230823-02
2023-08-23
20230823-01
2023-08-23
c76c148f
2023-06-13