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
const host = "secure.gravatar.com"; | |
const defaultSize = "512"; | |
addEventListener("fetch", function(event) { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function handleRequest(request) { | |
// Check referer. | |
let referer = request.headers.get("referer") |
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 ubuntu:22.04 | |
ARG VERSION=5:25.0.4-1~ubuntu.22.04~jammy | |
RUN apt update \ | |
&& apt install -y ca-certificates curl gpg \ | |
&& install -m 0755 -d /etc/apt/keyrings \ | |
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \ | |
&& chmod a+r /etc/apt/keyrings/docker.asc \ | |
&& echo \ |
OlderNewer