-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
36 lines (25 loc) · 809 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Base image using Ruby 3.2.0
FROM ruby:3.2.0
# Install dependencies
RUN apt-get update -qq && apt-get install -y \
build-essential \
vim \
libpq-dev \
nodejs \
yarn \
git \
curl
# Clean cache and temp files, fix permissions
RUN apt-get clean -qy \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN bundle config --local deployment true && \
bundle config --local path "vendor/bundle"
RUN gem install bundler -v 2.4.5
WORKDIR /gem
COPY Gemfile Gemfile.lock *.gemspec ./
COPY lib/ ./lib/
RUN bundle install --jobs 12 --retry 3
COPY . .
CMD ["bundle", "exec", "rake"]
# docker build -t central-market-comissioner_web .
# docker run -e DATABASE_URL=postgres://postgres:@192.168.1.136:5432/spree_cm_commissioner_spree_test -e RAILS_ENV=test -it central-market-comissioner_web bash