-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (21 loc) · 988 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
FROM golang:1.9.2
MAINTAINER Akhmad Ghozali Amrulloh <[email protected]>
RUN apt-get update -yqq && \
curl -sL https://deb.nodesource.com/setup_8.x | bash && \
apt-get install -y build-essential nodejs sqlite3 libsqlite3-dev vim wget git && \
apt-get install -y xorg xvfb libxrender1 libfontconfig1 libssl-dev && \
npm install -g --no-progress yarn && \
yarn config set yarn-offline-mirror /npm-packages-offline-cache && \
yarn config set yarn-offline-mirror-pruning true && \
go get -u github.com/golang/dep/cmd/dep && \
go get -u -v github.com/gobuffalo/buffalo/... && \
mkdir -p /home/bin
WORKDIR /home/bin
ADD . .
RUN tar xf wkhtmltox.tar.xz && \
chmod +x /home/bin/wkhtmltox/bin/wkhtmltopdf && \
chmod +x /home/bin/wkhtmltox/bin/wkhtmltoimage && \
ln -s /home/bin/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf && \
ln -s /home/bin/wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
WORKDIR $GOPATH/src
EXPOSE 3000