Skip to content

Commit

Permalink
Merge pull request #424 from jackbayliss/background-worker
Browse files Browse the repository at this point in the history
Feature - Background Queue Worker /  Highscore
  • Loading branch information
lanedirt authored Nov 9, 2024
2 parents 43376be + 099db06 commit 28a284d
Show file tree
Hide file tree
Showing 18 changed files with 2,034 additions and 416 deletions.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,16 @@ COPY . /var/www
# Copy existing application directory permissions
COPY --chown=www:www . /var/www

# Change current user to www (disabled when running through GitHub Actions)
# Switch to root to copy entry point scripts
USER root

# Copy entry point and set permissions for www user
COPY docker/entrypoint.sh /usr/local/bin/entrypoint
RUN chmod +x /usr/local/bin/entrypoint && \
chown www:www /usr/local/bin/entrypoint

# Switch to www user
USER www

# Expose port 9000 and start php-fpm server
EXPOSE 9000
CMD ["php-fpm"]
# Run entrypoint
CMD ["/usr/local/bin/entrypoint"]
Loading

0 comments on commit 28a284d

Please sign in to comment.