-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
41 lines (29 loc) · 919 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
37
38
39
40
41
FROM ruby:2.7-slim
LABEL maintainer="Josh Bielick <[email protected]>"
ARG BUNDLER_VERSION="2.3.8"
ARG ESLINT_VERSION="7.32.0"
ARG STYLELINT_VERSION="13.13.1"
ARG NODE_VERSION=14
RUN apt-get update && apt-get install --no-install-recommends -y curl && rm -rf /var/lib/apt/lists/*;
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -
RUN apt-get update && \
apt-get install --no-install-recommends -y \
ruby-dev \
build-essential \
cmake \
git \
pkg-config \
openssl \
yamllint \
nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN gem install bundler --version "${BUNDLER_VERSION}"
RUN npm install -g eslint@${ESLINT_VERSION} && npm cache clean --force;
RUN npm install stylelint@${STYLELINT_VERSION} && npm cache clean --force;
WORKDIR /runner
COPY Gemfile* ./
RUN bundle --retry 4
ENV BUNDLE_GEMFILE /runner/Gemfile
COPY . ./
WORKDIR /data
ENTRYPOINT ["/runner/pronto"]