Skip to content

Commit

Permalink
Dockerfile: Merge Copy And Chown
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Apr 10, 2019
1 parent 5dc1a73 commit cfcf5f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Expand Up @@ -40,12 +40,9 @@ RUN apt-get update \
&& docker-php-ext-install \
pdo_pgsql

# Create Apache directory and copy the files
# Create Apache directory and copy the files, changing the server files' owner
RUN mkdir -p $APACHE_DIR
COPY --from=stage_node /app/dist/$PROJECT_NAME $APACHE_DIR/

# Change server files' owner
RUN chown www-data:www-data -R $APACHE_DIR/server
COPY --from=stage_node --chown=www-data:www-data /app/dist/$PROJECT_NAME $APACHE_DIR/

# Copy Apache and PHP config files
COPY docker/apache/conf/* $APACHE_CONFDIR/conf-available/
Expand Down

0 comments on commit cfcf5f8

Please sign in to comment.