Module

x/pagic/Dockerfile

A static site generator powered by Deno + React
Latest
File
FROM alpine:3.12 AS permissions-giver
# Make sure docker-entrypoint.sh is executable, regardless of the build host.WORKDIR /outCOPY docker-entrypoint.sh .RUN chmod +x docker-entrypoint.sh
FROM alpine:3.12 AS organizer
# Installation filesWORKDIR /out/usr/src/installCOPY src srcCOPY mod.ts .COPY deps.ts .
# Default configurationWORKDIR /out/pagicRUN echo "export default {};" > pagic.config.ts
FROM hayd/alpine-deno:latest AS runnerCOPY --from=organizer /out /
# InstallWORKDIR /usr/src/installENV PATH "/root/.deno/bin:$PATH"RUN deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic mod.ts \ # Install dependencies && deno cache --unstable $(find src -name "*.ts*" ! -name "*_test.ts*")
WORKDIR /pagicCOPY --from=permissions-giver /out/docker-entrypoint.sh /usr/local/binENTRYPOINT [ "docker-entrypoint.sh" ]CMD [ "build" ]