Skip to content

Commit

Permalink
GMBP-113: Add Dockerfile to application ready for AWS migration (#526)
Browse files Browse the repository at this point in the history
* Add Dockerfile to application ready for AWS migration

* Compile assets
  • Loading branch information
georges1996 authored Sep 27, 2023
1 parent 319bd3b commit e09921e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ruby:3.2.1

WORKDIR /app

RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get update && \
apt-get install -y nodejs && \
npm install -g [email protected]

COPY Gemfile Gemfile.lock ./

RUN yarn install --check-files

RUN gem install bundler && bundle install --jobs 20 --retry 5

COPY . .

RUN rake assets:precompile

EXPOSE 3000

CMD ["rails", "server", "-b", "0.0.0.0"]

0 comments on commit e09921e

Please sign in to comment.