-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (39 loc) · 1.13 KB
/
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
42
43
44
FROM jekyll/jekyll:latest
MAINTAINER Carlos Matallín Civera <[email protected]>
RUN apk update && apk upgrade && \
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
apk add --no-cache \
chromium \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
automake \
autoconf \
nasm \
&& rm -rf /var/cache/* \
&& mkdir /var/cache/apk
ENV GEM_HOME="/usr/local/bundle"
ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV APP_HOME /matall.in
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
RUN gem install bundler
RUN npm install -g yarn
RUN yarn global add gulp-cli
COPY Gemfile* $APP_HOME/
RUN bundle install --path vendor/bundle
COPY package.json $APP_HOME/
COPY yarn.lock $APP_HOME/
RUN yarn install
COPY . $APP_HOME
COPY docker-entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 9000
CMD ["yarn", "build"]