forked from cookpad/roadworker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 916 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
FROM 276018124710.dkr.ecr.eu-west-1.amazonaws.com/ivx-ruby:3.2.2
ENV LANG=C.UTF-8
ENV LANGUAGE=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV NODE_MAJOR=20
RUN apt-get update \
&& apt-get install -y \
build-essential \
ca-certificates \
curl \
gnupg \
git \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install --no-install-recommends -y nodejs \
&& npm install -g npm
WORKDIR /code
COPY . /code
RUN gem install bundler && bundle
RUN bundle install --jobs=4 --retry=3
RUN npm ci
RUN npm run lint
RUN bundle exec rake build
ENTRYPOINT ["/code/docker-entrypoint.sh"]
CMD ["test"]