-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (46 loc) · 1.31 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
45
46
47
48
49
50
51
52
53
54
55
FROM goatcms/webslots:prod
RUN apt-get update
# install docker dependencies
RUN apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
vim \
gnupg2 \
software-properties-common
# install docker
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
RUN apt-get update
RUN apt-get -y install docker-ce
# nodejs
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
# nodejs packages and upgread
RUN \
npm install -g n && \
npm install -g gulp && \
npm install -g jshint && \
npm install -g bower && \
npm install -g yarn
# ruby
RUN apt-get install -y ruby-full
# sass install
RUN gem install sass
# load fixtures (contains fragments)
RUN rm -rf data && rm -rf config && rm -rf data
RUN rm main.db ||:
COPY config/helpers /app/config/helpers
COPY config/slots /app/config/slots
COPY config/tasks /app/config/tasks
COPY fixtures /app/fixtures
# entrypoint
COPY docker/entrypoint.sh "/app/docker/entrypoint.sh"
RUN chmod +x "/app/docker/entrypoint.sh"
COPY docker/https-config.sh "/app/docker/https-config.sh"
RUN chmod +x "/app/docker/https-config.sh"
ENTRYPOINT ["/app/docker/entrypoint.sh"]
CMD []