Pushing to this gist via Git repo
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
# syntax=docker/dockerfile:1.2 | |
ARG BASE_DOCKER_IMAGE | |
ARG NODE_DOCKER_IMAGE | |
FROM ${NODE_DOCKER_IMAGE} AS node-builder | |
WORKDIR /app | |
COPY assets /app/assets | |
COPY package.json tsconfig.json webpack.config.js yarn.lock /app/ | |
RUN --mount=type=cache,target=/yarn yarn install --frozen-lockfile --cache-dir=/yarn | |
RUN --mount=type=cache,target=/yarn yarn encore production |
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
FROM php:8.0-alpine | |
COPY --from=trajano/alpine-libfaketime /faketime.so /lib/faketime.so | |
ENV LD_PRELOAD=/lib/faketime.so |
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
<?php | |
declare(strict_types=1); | |
namespace OpenTelemetry\Contrib\Zipkin; | |
use InvalidArgumentException; | |
use OpenTelemetry\Sdk\Trace; | |
use OpenTelemetry\Trace as API; | |
use Psr\Http\Client\ClientExceptionInterface; |
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
dalibor.karlovic ALL=/usr/bin/tee /etc/pki/ca-trust/source/anchors/mkcert_development_CA*, /usr/bin/rm -f /etc/pki/ca-trust/source/anchors/mkcert_development_CA*, /usr/bin/update-ca-trust extract |
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
# syntax=docker/dockerfile:experimental | |
FROM alpine:3.11 AS runtime | |
WORKDIR /app | |
RUN addgroup -g 82 -S www-data && \ | |
adduser -u 82 -H -D -S -G www-data www-data && \ | |
apk add --update --no-cache \ | |
php7 \ | |
php7-ctype \ | |
php7-dom \ | |
php7-iconv \ |
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
ARG BUILD_VERSION | |
FROM example.com/app:${BUILD_VERSION} | |
# copy QA tools from a known source | |
COPY --from=jakzal/phpqa:alpine /tools /tools/ | |
COPY --from=jakzal/phpqa:alpine /usr/bin/composer /tools/ | |
RUN apk add --update --no-cache \ | |
curl \ | |
openssl \ |
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
FROM alpine:3.7 | |
# this is the "app" image, contains PHP-FPM | |
RUN addgroup -g 82 -S www-data && \ | |
adduser -u 82 -H -D -S -G www-data www-data && \ | |
# etc.. | |
# PHP-FPM is setup to run as "www-data" | |
WORKDIR /app |
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
<VirtualHost *:80> | |
ServerName registry.example.com | |
ServerSignature Off | |
RewriteEngine on | |
RewriteCond %{HTTPS} !=on | |
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L] | |
</VirtualHost> | |
<VirtualHost *:443> |
NewerOlder