Nicky Nicolson commited on
Commit
40a4c21
·
1 Parent(s): 419551d
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -16,11 +16,13 @@ ENV JEKYLL_UID=0 \
16
  WORKDIR /usr/src/app
17
  COPY Gemfile ./
18
  # RUN bundle config set frozen true
 
19
  RUN bundle install
20
- COPY . .
21
  RUN bundle exec jekyll build
22
 
23
  #Copy _sites from build to Nginx Container to serve site
 
24
  FROM nginx:latest
25
 
26
  RUN mkdir -p /var/cache/nginx \
 
16
  WORKDIR /usr/src/app
17
  COPY Gemfile ./
18
  # RUN bundle config set frozen true
19
+ USER jekyll
20
  RUN bundle install
21
+ # COPY . .
22
  RUN bundle exec jekyll build
23
 
24
  #Copy _sites from build to Nginx Container to serve site
25
+ USER root
26
  FROM nginx:latest
27
 
28
  RUN mkdir -p /var/cache/nginx \