-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDev.dockerfile
More file actions
38 lines (34 loc) · 845 Bytes
/
Dev.dockerfile
File metadata and controls
38 lines (34 loc) · 845 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
FROM ruby:3.1.3-alpine
LABEL maintainer="Midnight Riders<webczar@midnightriders.com>"
WORKDIR /tmp
COPY .node-version .
RUN apk update
RUN apk add --no-cache --virtual \
build-dependencies \
build-base \
chromium \
chromium-chromedriver \
gcompat \
yaml-dev \
nodejs="$(head -1 .node-version)-r0" \
npm \
postgresql-dev \
ruby-nokogiri \
tzdata \
build-base \
imagemagick \
imagemagick-c++ \
imagemagick-dev \
imagemagick-libs && \
rm -rf /var/cache/apk/* && \
npm i -g corepack && \
corepack enable
WORKDIR /tmp
RUN gem install debase-ruby_core_source
COPY Gemfile Gemfile.lock /tmp/
RUN gem install foreman && \
bundle install --without=local
RUN apk del build-base
WORKDIR /usr/src/member-portal
COPY package.json yarn.lock ./
RUN yarn install && yarn cache clean