Skip to content

Commit a216bdc

Browse files
author
alexfornuto
committed
Squashed commit, details below.
create .dockerignore move server run command into bash script break up build into separate RUNs, invoke app.sh
1 parent d36f4f7 commit a216bdc

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Dockerfile
2+
.dockerignore
3+
*.swp
4+

Dockerfile

+15-9
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ WORKDIR /documentation
99
# Copy the working directory into the container
1010
ADD . /documentation
1111

12-
# Install dependencies
13-
RUN composer self-update && composer install \
14-
&& sudo apt-get install ruby-full && sudo apt-get install zlib1g-dev && gem install pkg-config -v "~> 1.1" \
15-
&& gem install bundler && bundle install \
16-
&& npm install
12+
# Install PHP dependencies
13+
RUN composer self-update && composer install
14+
15+
# Install Ruby dependencies
16+
RUN sudo apt-get install ruby-full && sudo apt-get install zlib1g-dev && gem install pkg-config -v "~> 1.1" \
17+
&& gem install bundler && bundle install
18+
19+
# Install node dependencies
20+
RUN npm install
1721

1822
# Compile assets (CSS and Terminus Manual)
19-
RUN node_modules/.bin/grunt \
20-
&& vendor/pantheon-systems/terminus/bin/terminus list > source/docs/assets/terminus/commands.json --format=json \
21-
&& curl https://api.github.com/repos/pantheon-systems/terminus/releases > source/docs/assets/terminus/releases.json
23+
RUN node_modules/.bin/grunt
24+
25+
RUN vendor/pantheon-systems/terminus/bin/terminus list > source/docs/assets/terminus/commands.json --format=json
26+
27+
RUN curl https://api.github.com/repos/pantheon-systems/terminus/releases > source/docs/assets/terminus/releases.json
2228

2329
# Generate the site in development mode (include drafts)
2430
RUN bin/sculpin generate --env=dev \
@@ -29,4 +35,4 @@ RUN bin/sculpin generate --env=dev \
2935
EXPOSE 8000
3036

3137
# Serve the site
32-
CMD bin/sculpin server
38+
CMD /documentation/app.sh

app.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Start the Sculpin server
4+
bin/sculpin server

0 commit comments

Comments
 (0)