Giter Club home page Giter Club logo

Comments (2)

randall-coding avatar randall-coding commented on June 8, 2024

Here is my Dockerfile.

FROM ruby:3.1.4-bullseye

RUN gem install 'aws_lambda_ric'
ENTRYPOINT [ "/usr/local/bundle/bin/aws_lambda_ric" ]

RUN mkdir /app
&& groupadd -g 10001 app
&& useradd -u 10000 -g app app
&& chown -R app:app /app

RUN apt update
&& apt upgrade -y
&& apt install -y --no-install-recommends
tzdata
git
openssh-client
make
gcc
g++
default-libmysqlclient-dev
libxrender1
build-essential
libpq-dev
curl
socat
ca-certificates
gnupg
libc6

RUN echo "DEBUGGING..."
RUN ldd --version

USER app
WORKDIR "/app"

ENV BUNDLE_IGNORE_CONFIG=1
ENV BUNDLE_PATH=./vendor/bundle
ENV BUNDLE_CACHE_PATH=./vendor/cache
ENV RAILS_SERVE_STATIC_FILES=1
COPY --chown=app:app Gemfile ./
RUN bundle install
COPY --chown=app:app . .
CMD ["config/environment.Lamby.cmd"]

from lamby.

jeremiahlukus avatar jeremiahlukus commented on June 8, 2024

bundle install is needed to run precompile or run db:migrate. If you do not need to do either of these things then there is no reason to do a bundle install in bin/deploy. Also in the cookie cutter he is running bundle install and coping over the bundle cache which makes the lambda quicker. Im not sure how he got that part to work in arm64 so im doing a bundle install in my Dockerfile

from lamby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.