-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (20 loc) · 926 Bytes
/
Dockerfile
File metadata and controls
32 lines (20 loc) · 926 Bytes
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
# TODO: restore to latest version of Alpine once we can use the latest Chromium again (see https://github.com/teamcapybara/capybara/issues/2800)
# https://trello.com/c/bFuui8d7/3458-unpin-alpine-version-in-forms-e2e-tests-once-chromedriver-issue-is-fixed
ARG ALPINE_VERSION=3.20
ARG RUBY_VERSION=3.4.4
ARG DOCKER_IMAGE_DIGEST=sha256:78223c2421bbd1e133fc6e126cf632c50b31c8728cbdbdae5742881c13c73350
FROM ruby:${RUBY_VERSION}-alpine${ALPINE_VERSION}@${DOCKER_IMAGE_DIGEST}
ENV BUNDLE_SIMULATE_VERSION=4
RUN apk update
RUN apk upgrade --available
RUN apk add chromium chromium-chromedriver libc6-compat build-base yaml-dev aws-cli
RUN adduser -D ruby
RUN mkdir /app && chown -R ruby:ruby /app
WORKDIR /app
USER ruby
COPY --chown=ruby:ruby .ruby-version .
COPY --chown=ruby:ruby Gemfile* .
RUN bundle config set --local without development
RUN bundle install
COPY --chown=ruby:ruby . .
CMD ["bundle", "exec", "rspec"]