-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 772 Bytes
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 772 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
FROM ruby:2.4.1-alpine
LABEL maintainer="tgourley@gmail.com" \
description="Track Your RPG Initiative"
ENV RAILS_ENV production
ENV NODE_ENV production
WORKDIR /initrax
COPY Gemfile Gemfile.lock package.json yarn.lock /initrax/
EXPOSE 3000
RUN apk -U upgrade && apk add --no-cache \
git \
postgresql-dev \
libxml2-dev \
libxslt-dev \
build-base \
nodejs \
libpq \
libxml2 \
libxslt \
ffmpeg \
file \
imagemagick \
&& npm install -g npm@3 && npm install -g yarn \
&& bundle install --deployment --without test development \
&& yarn \
&& yarn cache clean \
&& npm -g cache clean \
&& rm -rf /tmp/* /var/cache/apk/*
COPY . /initrax
VOLUME /initrax/public/system /initrax/public/assets /initrax/public/packs