forked from microsoft/opensource.microsoft.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.builder
More file actions
31 lines (23 loc) · 744 Bytes
/
Dockerfile.builder
File metadata and controls
31 lines (23 loc) · 744 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
FROM jekyll/builder as build
RUN apk update && apk add --no-cache zip
WORKDIR /usr/local/site
COPY Gemfile /usr/local/site
COPY Gemfile.lock /usr/local/site
COPY package.json /usr/local/site
COPY package-lock.json /usr/local/site
RUN addgroup oss && adduser -D -G oss oss && chown -R oss:oss .
RUN chown -R oss:oss /usr/gem
# This may not be necessary, but local runs do not have these folders
# RUN mkdir -p /github/workflow
# RUN chown -R oss:oss /github
# RUN chmod -R 777 /github
USER oss
#RUN bundle config set deployment true
RUN bundle install
RUN npm install
# Build the site
#RUN ./node_modules/gulp/bin/gulp.js build
#RUN jekyll build
# Prepare to deploy static site
#WORKDIR /usr/local/site/_site
#RUN tar -cvf site.tar.gz .