forked from AdWerx/pronto-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (28 loc) · 748 Bytes
/
Dockerfile
File metadata and controls
40 lines (28 loc) · 748 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
33
34
35
36
37
38
39
40
FROM ruby:2.7-slim
LABEL maintainer="Josh Bielick <jbielick@adwerx.com>"
ENV BUNDLER_VERSION="2.1.4"
ENV ESLINT_VERSION="6.8.0"
ENV STYLELINT_VERSION="13.9.0"
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get update && \
apt-get install -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}
RUN npm install stylelint@${STYLELINT_VERSION}
WORKDIR /runner
COPY Gemfile* ./
RUN bundle --retry 4
ENV BUNDLE_GEMFILE /runner/Gemfile
COPY . ./
WORKDIR /data
ENTRYPOINT ["/runner/pronto"]