-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM 1maa/php-dev:8.3 AS builder | ||
|
||
WORKDIR /tmp/faucet | ||
|
||
COPY bin bin | ||
COPY src src | ||
COPY views views | ||
COPY web web | ||
COPY composer.json . | ||
COPY composer.lock . | ||
|
||
RUN composer install --no-dev --classmap-authoritative \ | ||
&& chown -R nobody:nobody /tmp/faucet | ||
|
||
|
||
FROM 1maa/php:8.3 AS final | ||
|
||
ENV FAUCET_DEBUG=0 | ||
ENV FAUCET_REDIS_ENDPOINT=redis:6379 | ||
ENV FAUCET_REDIS_PREFIX="faucet:" | ||
ENV FAUCET_BITCOIN_RPC_ENDPOINT="http://knots:18443" | ||
ENV FAUCET_BITCOIN_RPC_USER=knots | ||
ENV FAUCET_BITCOIN_RPC_PASS=knots | ||
ENV FAUCET_NAME="Your Signet Faucet" | ||
ENV FAUCET_MIN_ONE_TIME_BTC=0.001 | ||
ENV FAUCET_MAX_ONE_TIME_BTC=5.0 | ||
ENV FAUCET_USER_SESSION_TTL=3600 | ||
ENV FAUCET_GLOBAL_SESSION_TTL=3600 | ||
ENV FAUCET_USE_CAPTCHA=0 | ||
ENV FAUCET_USE_BATCHING=0 | ||
ENV FAUCET_FEE_RATE=0 | ||
ENV FAUCET_USER_SESSION_MAX_BTC=20.0 | ||
ENV FAUCET_GLOBAL_SESSION_MAX_BTC=150.0 | ||
|
||
ENV PHP_CLI_SERVER_WORKERS=8 | ||
|
||
COPY --from=builder /tmp/faucet /var/www/faucet | ||
|
||
WORKDIR /var/www/faucet | ||
|
||
USER nobody | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["php", "-d", "variables_order=EGPCS", "-S", "0.0.0.0:8080", "-t", "web"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters