We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
Something like this should work:
from project root directory
# install vendor folder docker run --rm --volume $PWD:/app composer install -a --no-dev --ignore-platform-reqs # build server php image with socket support printf 'FROM php:8.3-cli\n\nRUN docker-php-ext-install sockets\n' > Dockerfile docker build -t csf .
# run server docker run --rm --init -it -v $PWD:/app -p 8080:8080/udp -w /app csf php cli/server.php
Sorry, something went wrong.
Here's an example Dockerfile that should work with no extra work.
FROM composer/composer:latest RUN apk add --no-cache linux-headers && docker-php-ext-install sockets RUN git clone https://github.com/solcloud/Counter-Strike . && composer install -a --no-dev EXPOSE 8080 ENTRYPOINT ["php", "cli/server.php"] CMD ["2"]
No branches or pull requests
The text was updated successfully, but these errors were encountered: