Skip to content

Commit

Permalink
Ensure sane permissions on files in docker image. #411
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 18, 2021
1 parent 042b255 commit 776b59d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ FROM xhgui/xhgui:latest AS php-prebuilt
FROM php-$BUILD_SOURCE AS php

# prepare sources
FROM scratch AS source
FROM alpine AS source
WORKDIR /app
COPY . .
# mkdir "vendor" dir, so the next stage can optionally use external vendor dir contents
WORKDIR /app/vendor
RUN chmod -R a+rX /app

# install composer vendor
FROM php AS build
Expand Down

0 comments on commit 776b59d

Please sign in to comment.